Quantum 2
2.1.9
Signal is fired when an agent reaches a waypoint. More...
Inherits Quantum.ISignal.
Public Member Functions | |
| void | OnNavMeshWaypointReached (Frame f, EntityRef entity, FPVector3 waypoint, Navigation.WaypointFlag waypointFlags, ref bool resetAgent) |
Signal is fired when an agent reaches a waypoint.
Requires enabled Navigation.Config.EnableNavigationCallbacks in SimulationConfig.Navigation.
| void Quantum.ISignalOnNavMeshWaypointReached.OnNavMeshWaypointReached | ( | Frame | f, |
| EntityRef | entity, | ||
| FPVector3 | waypoint, | ||
| Navigation.WaypointFlag | waypointFlags, | ||
| ref bool | resetAgent | ||
| ) |
| f | Current frame object |
| 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. |