Photon Quantum 3.0.0

Public Member Functions | List of all members
Quantum.ISignalOnNavMeshWaypointReached Interface Reference
Inheritance diagram for Quantum.ISignalOnNavMeshWaypointReached:
Quantum.ISignal

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...
 

Detailed Description

Member Function Documentation

◆ OnNavMeshWaypointReached()

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.

Parameters
fThe frame reference.
entityThe entity the navmesh agent component belongs to
waypointThe current waypoint position
waypointFlagsThe current waypoint flags
resetAgentIf set to true the NavMeshPathfinder component will be cleared and stopped. Set to false if NavMeshPathfinder.SetTarget() was called inside the callback.