Photon Quantum 3.0.0

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

The navmesh triangle data structure. More...

Public Member Functions

void ComputeCenter (NavMesh navMesh)
 Computes the center of the navmesh and stores the result in Center. This is performed during baking or during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData. More...
 
void ComputeNormal (NavMesh navMesh)
 Computes the normal of the triangle and stores the result in Normal. This is performed during baking or during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData. More...
 
void Serialize (ByteStream stream, Boolean write, NavMesh navMesh)
 Serilizes the triangle data. More...
 

Public Attributes

int Area
 The area code of the triangle. More...
 
int[] Borders
 All borders on this navmesh triangle pointing into NavMesh.Borders. More...
 
FPVector3 Center
 The center of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData. More...
 
FP Cost
 The cost modifier of the triangle. More...
 
int[] Links
 All links from this triangle pointing into NavMesh.Links"/>. More...
 
NavMeshPortal[] Neighbors
 All neighboring triangles. More...
 
FPVector3 Normal
 The normal of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData. More...
 
NavMeshRegionMask Regions
 The region mask of this triangle. More...
 
Int32 Vertex0
 Vertex index 0 poiting into the NavMesh.Vertices array. More...
 
Int32 Vertex1
 Vertex index 1 poiting into the NavMesh.Vertices array. More...
 
Int32 Vertex2
 Vertex index 2 poiting into the NavMesh.Vertices array. More...
 

Detailed Description

The navmesh triangle data structure.

Member Function Documentation

◆ ComputeNormal()

void Quantum.NavMeshTriangle.ComputeNormal ( NavMesh  navMesh)
inline

Computes the normal of the triangle and stores the result in Normal. This is performed during baking or during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.

Parameters
navMeshNavmesh to lookup vertices.

◆ ComputeCenter()

void Quantum.NavMeshTriangle.ComputeCenter ( NavMesh  navMesh)
inline

Computes the center of the navmesh and stores the result in Center. This is performed during baking or during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.

Parameters
navMeshNavmesh to look up vertices.

◆ Serialize()

void Quantum.NavMeshTriangle.Serialize ( ByteStream  stream,
Boolean  write,
NavMesh  navMesh 
)
inline

Serilizes the triangle data.

Parameters
streamStream
writeWrite or read
navMeshThe navmesh this triangle belongs to.

Member Data Documentation

◆ Vertex0

Int32 Quantum.NavMeshTriangle.Vertex0

Vertex index 0 poiting into the NavMesh.Vertices array.

◆ Vertex1

Int32 Quantum.NavMeshTriangle.Vertex1

Vertex index 1 poiting into the NavMesh.Vertices array.

◆ Vertex2

Int32 Quantum.NavMeshTriangle.Vertex2

Vertex index 2 poiting into the NavMesh.Vertices array.

◆ Neighbors

NavMeshPortal [] Quantum.NavMeshTriangle.Neighbors

All neighboring triangles.

◆ Links

int [] Quantum.NavMeshTriangle.Links

All links from this triangle pointing into NavMesh.Links"/>.

◆ Borders

int [] Quantum.NavMeshTriangle.Borders

All borders on this navmesh triangle pointing into NavMesh.Borders.

◆ Area

int Quantum.NavMeshTriangle.Area

The area code of the triangle.

◆ Regions

NavMeshRegionMask Quantum.NavMeshTriangle.Regions

The region mask of this triangle.

◆ Cost

FP Quantum.NavMeshTriangle.Cost

The cost modifier of the triangle.

◆ Normal

FPVector3 Quantum.NavMeshTriangle.Normal

The normal of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.

◆ Center

FPVector3 Quantum.NavMeshTriangle.Center

The center of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.