Photon Quantum 2.1.1

Public Member Functions | List of all members
Quantum.ISignalOnNavMeshWaypointReached Interface Reference

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)
 

Detailed Description

Signal is fired when an agent reaches a waypoint.

Requires enabled Navigation.Config.EnableNavigationCallbacks in SimulationConfig.Navigation.

Member Function Documentation

◆ OnNavMeshWaypointReached()

void Quantum.ISignalOnNavMeshWaypointReached.OnNavMeshWaypointReached ( Frame  f,
EntityRef  entity,
FPVector3  waypoint,
Navigation.WaypointFlag  waypointFlags,
ref bool  resetAgent 
)
Parameters
fCurrent frame object
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.