Photon Quantum 3.0.0

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

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

Detailed Description

Member Function Documentation

◆ OnNavMeshMoveAgent()

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.

Parameters
fThe frame reference.
entityThe entity the navmesh agent component belongs to.
desiredDirectionThe normalized direction that the internal steering and avoidance thinks the agent movement vector should be.