Photon Quantum 3.0.0

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

A component that represents a circle-shaped obstacle for navmesh agents to avoid. This is not altering the navmesh itself, but it is dynamic obstacle to be avoided by other agents steering. More...

Inheritance diagram for Quantum.NavMeshAvoidanceObstacle:
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 = 32
 The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed. More...
 

Properties

byte AvoidanceLayer [get, set]
 Configure the avoidance layer of the obstacle. More...
 
bool? IsActive [get, set]
 Enable or disable the obstacle. More...
 
FP Radius [get, set]
 Configure the radius of the obstacle. More...
 
FPVector2 Velocity [get, set]
 An optional velocity for the obstacle. More...
 

Detailed Description

A component that represents a circle-shaped obstacle for navmesh agents to avoid. This is not altering the navmesh itself, but it is dynamic obstacle to be avoided by other agents steering.

Member Function Documentation

◆ Serialize()

static void Quantum.NavMeshAvoidanceObstacle.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.NavMeshAvoidanceObstacle.SIZE = 32
static

The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.

Property Documentation

◆ IsActive

bool? Quantum.NavMeshAvoidanceObstacle.IsActive
getset

Enable or disable the obstacle.

◆ AvoidanceLayer

byte Quantum.NavMeshAvoidanceObstacle.AvoidanceLayer
getset

Configure the avoidance layer of the obstacle.

◆ Radius

FP Quantum.NavMeshAvoidanceObstacle.Radius
getset

Configure the radius of the obstacle.

◆ Velocity

FPVector2 Quantum.NavMeshAvoidanceObstacle.Velocity
getset

An optional velocity for the obstacle.