Struct MovementState Extends IComponentData

Public

Public Methods

SetPathIsEmpty (agentPosition)

Sets the appropriate fields to indicate that the agent has no path.

Public

Public Variables

closestOnNavmesh

The closest point on the navmesh to the agent.

Public
endOfPath

The end of the current path.

Public
flags

Bitmask for various flags.

Public
followerState

State of the PID controller for the movement.

Public
hierarchicalNodeIndex

The index of the hierarchical node that the agent is currently in.

Public
nextCorner

The next corner in the path.

Public
pathTracerVersion

Version number of PathTracer.version when the movement state was last updated.

Public
positionOffset
Public
reachedDestination

True if the agent has reached its destination.

Public
reachedDestinationAndOrientation

True if the agent has reached its destination and is facing the desired orientation.

Public
reachedEndOfPart

True if the agent has reached the end of the current part in the path.

Public
reachedEndOfPath

True if the agent has reached the end of the path.

Public
reachedEndOfPathAndOrientation

True if the agent has reached its destination and is facing the desired orientation.

Public
remainingDistanceToEndOfPart

The remaining distance until the end of the path, or the next off-mesh link.

Public
rotationOffset

The current additional rotation that is applied to the agent.

Public
rotationOffset2

An additional, purely visual, rotation offset.

Public
traversingLastPart

True if the agent is traversing the last part of the path.

Public

Public Static Variables

ReachedDestinationFlag
Public Static
ReachedEndOfPartFlag
Public Static
ReachedEndOfPathFlag
Public Static
TraversingLastPartFlag
Public Static
reachedDestinationAndOrientationFlag
Public Static
reachedEndOfPathAndOrientationFlag
Public Static