Public Member Functions | |
void | OnNavMeshMoveAgent (Frame f, EntityRef entity, FPVector2 desiredDirection) |
Signal is called when the agent should move. The desired direction is influence by avoidance. More... | |
Additional Inherited Members | |
Properties inherited from Quantum.ISignal | |
Int32 | RuntimeIndex [get] |
Index of the signal in the runtime. More... | |
void Quantum.ISignalOnNavMeshMoveAgent.OnNavMeshMoveAgent | ( | Frame | f, |
EntityRef | entity, | ||
FPVector2 | desiredDirection | ||
) |
Signal is called when the agent should move. The desired direction is influence by avoidance.
The agent velocity should be set in the callback.
Requires enabled NavMeshAgentConfig.MovementType to be set to Callback.
Requires enabled Navigation.Config.EnableNavigationCallbacks in SimulationConfig.Navigation.
f | The frame reference. |
entity | The entity the navmesh agent component belongs to. |
desiredDirection | The normalized direction that the internal steering and avoidance thinks the agent movement vector should be. |