/// <summary>State of the PID controller for the movement</summary>
publicPIDMovement.PersistentStatefollowerState;
/// <summary>The next corner in the path</summary>
publicfloat3nextCorner;
/// <summary>
/// The end of the current path.
/// Note that the agent may be heading towards an off-mesh link which is not the same as this point.
/// </summary>
publicfloat3endOfPath;
/// <summary>
/// The closest point on the navmesh to the agent.
/// The agent will be snapped to this point.
/// </summary>
publicfloat3closestOnNavmesh;
/// <summary>
/// Offset from the agent's internal position to its visual position.
///
/// This is used when position smoothing is enabled. Otherwise it is zero.
/// </summary>
publicfloat3positionOffset;
/// <summary>
/// The index of the hierarchical node that the agent is currently in.
/// Will be -1 if the hierarchical node index is not known.
///
/// This field is valid during all system updates in the <see cref="AIMovementSystemGroup"/>. It is not guaranteed to be valid after that group has finished running, as graph updates may have changed the graph.
///
/// See: <see cref="HierarchicalGraph"/>
/// </summary>
publicinthierarchicalNodeIndex;
/// <summary>The remaining distance until the end of the path, or the next off-mesh link</summary>
publicfloatremainingDistanceToEndOfPart;
/// <summary>
/// The current additional rotation that is applied to the agent.
/// This is used by the local avoidance system to rotate the agent, without this causing a feedback loop.
/// An additional, purely visual, rotation offset.
/// This is used for rotation smoothing, but does not affect the movement of the agent.
/// </summary>
publicfloatrotationOffset2;
/// <summary>
/// Version number of <see cref="PathTracer.version"/> when the movement state was last updated.
/// In particular, <see cref="closestOnNavmesh"/>, <see cref="nextCorner"/>, <see cref="endOfPath"/>, <see cref="remainingDistanceToEndOfPart"/>, <see cref="reachedDestination"/> and <see cref="reachedEndOfPath"/> will only
/// be considered up to date if this is equal to the current version number of the path tracer.
/// True if the agent has reached its destination.
/// The destination will be considered reached if all of these conditions are met:
/// - The agent has a path
/// - The path is not stale
/// - The destination is not significantly below the agent's feet.
/// - The destination is not significantly above the agent's head.
/// - The agent is on the last part of the path (there are no more remaining off-mesh links).
/// - The remaining distance to the end of the path + the distance from the end of the path to the destination is less than <see cref="MovementSettings.stopDistance"/>.
// This attribute is used to avoid adding too much overhead when accessing this property when Deep Profiling is enabled, and to declutter the profiling view.