Struct JobAlignAgentWithMovementDirection Extends IJobEntity

Public

Aligns the agent's rotation with its movement direction, if the local avoidance system is causing it to move differently than expected.

Sometimes the agent may want to move in one direction (or stand still), but the local avoidance system tells it to move somewhere completely different. In those cases, we need to adjust the agent's desired rotation to avoid it looking like it's strafing.

Public Methods

Execute (transform, movementSettings, movementState, shape, movementPlane, movementControl, resolvedMovement)

Public Variables

dt
Public