Photon Quantum 3.0.0

Static Public Member Functions | Static Public Attributes | Properties | List of all members
Quantum.NavMeshSteeringAgent Struct Reference

A component to enable the steering toward a target position calculated by the navigation system. Requires NavMeshPathfinder component. More...

Inheritance diagram for Quantum.NavMeshSteeringAgent:
Quantum.IComponent

Static Public Member Functions

static void Serialize (void *p, FrameSerializer serializer)
 Callback to serialize this component into a snapshot of the game state. More...
 

Static Public Attributes

const int SIZE = 40
 The component size in bytes. More...
 

Properties

FP Acceleration [get, set]
 Agent acceleration value. More...
 
FP CurrentSpeed [get]
 The current speed per second that the agent is moving. More...
 
FP MaxSpeed [get, set]
 Agent max speed value. More...
 
FPVector2 Velocity [get, set]
 The current linear velocity of the agents. This is set from the internal steering. More...
 

Detailed Description

A component to enable the steering toward a target position calculated by the navigation system. Requires NavMeshPathfinder component.

Member Function Documentation

◆ Serialize()

static void Quantum.NavMeshSteeringAgent.Serialize ( void *  p,
FrameSerializer  serializer 
)
inlinestatic

Callback to serialize this component into a snapshot of the game state.

Parameters
pThe component pointer
serializerThe serializer

Member Data Documentation

◆ SIZE

const int Quantum.NavMeshSteeringAgent.SIZE = 40
static

The component size in bytes.

Property Documentation

◆ Acceleration

FP Quantum.NavMeshSteeringAgent.Acceleration
getset

Agent acceleration value.

Is potentially set to its original config value NavMeshPathfinder.SetConfig(FrameBase, EntityRef, NavMeshAgentConfig, bool).

◆ CurrentSpeed

FP Quantum.NavMeshSteeringAgent.CurrentSpeed
get

The current speed per second that the agent is moving.

Performs FPMath.Sqrt or the Velocity internally.

Is potentially set to its original config value NavMeshPathfinder.SetConfig(FrameBase, EntityRef, NavMeshAgentConfig, bool).

◆ MaxSpeed

FP Quantum.NavMeshSteeringAgent.MaxSpeed
getset

Agent max speed value.

Is potentially set to its original config value NavMeshPathfinder.SetConfig(FrameBase, EntityRef, NavMeshAgentConfig, bool).

◆ Velocity

FPVector2 Quantum.NavMeshSteeringAgent.Velocity
getset

The current linear velocity of the agents. This is set from the internal steering.