Public Member Functions | |
void | OnNavMeshWaypointReached (Frame f, EntityRef entity, FPVector3 waypoint, Navigation.WaypointFlag waypointFlags, ref bool resetAgent) |
Signal is called when an agent reaches a waypoint. More... | |
Additional Inherited Members | |
Properties inherited from Quantum.ISignal | |
Int32 | RuntimeIndex [get] |
Index of the signal in the runtime. More... | |
void Quantum.ISignalOnNavMeshWaypointReached.OnNavMeshWaypointReached | ( | Frame | f, |
EntityRef | entity, | ||
FPVector3 | waypoint, | ||
Navigation.WaypointFlag | waypointFlags, | ||
ref bool | resetAgent | ||
) |
Signal is called when an agent reaches a waypoint.
Requires enabled Navigation.Config.EnableNavigationCallbacks in SimulationConfig.Navigation.
f | The frame reference. |
entity | The entity the navmesh agent component belongs to |
waypoint | The current waypoint position |
waypointFlags | The current waypoint flags |
resetAgent | If set to true the NavMeshPathfinder component will be cleared and stopped. Set to false if NavMeshPathfinder.SetTarget() was called inside the callback. |