Photon Quantum 3.0.0

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

The navmesh vertex data structure is saves as an array in the NavMesh.Vertices. More...

Public Member Functions

void Serialize (ByteStream stream, Boolean write)
 Serialize or deserialize the vertex data. More...
 

Static Public Member Functions

static FPVector3 CalculateNormal (Int32 vertexIndex, NavMesh navmesh, NavMeshRegionMask regionMask)
 Computes the normal of the vertex against all adjacent borders. More...
 

Public Attributes

Int32[] Borders
 The borders that are connected to the vertex are pointing into NavMesh.Borders. More...
 
FPVector3 Point
 The world position of the navmesh vertex. More...
 

Detailed Description

The navmesh vertex data structure is saves as an array in the NavMesh.Vertices.

Member Function Documentation

◆ Serialize()

void Quantum.NavMeshVertex.Serialize ( ByteStream  stream,
Boolean  write 
)
inline

Serialize or deserialize the vertex data.

Parameters
streamStream
writeWrite or read

◆ CalculateNormal()

static FPVector3 Quantum.NavMeshVertex.CalculateNormal ( Int32  vertexIndex,
NavMesh  navmesh,
NavMeshRegionMask  regionMask 
)
inlinestatic

Computes the normal of the vertex against all adjacent borders.

Parameters
vertexIndexThe vertex index
navmeshThe navmesh
regionMaskThe region mask to include or exclude borders.
Returns
The normal agaist all borders at the vertex or FPVector3.Zero.

Member Data Documentation

◆ Point

FPVector3 Quantum.NavMeshVertex.Point

The world position of the navmesh vertex.

◆ Borders

Int32 [] Quantum.NavMeshVertex.Borders

The borders that are connected to the vertex are pointing into NavMesh.Borders.