Function AgentOffMeshLinkTraversalContext.DisableRotationSmoothing

DisableRotationSmoothing ()

Disables rotation smoothing for the agent.

Public
void DisableRotationSmoothing ()

Disables rotation smoothing for the agent.

This disables the effect of MovementSettings.rotationSmoothing while the agent is traversing the link. Having rotation smoothing enabled can make the agent rotate towards its target rotation more slowly, which is sometimes not desirable.

Rotation smoothing will automatically be restored when the agent finishes traversing the link (if it was enabled before).

The MoveTowards method automatically disables rotation smoothing when called.