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... | |
The navmesh triangle data structure.
|
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.
navMesh | Navmesh to lookup vertices. |
|
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.
navMesh | Navmesh to look up vertices. |
|
inline |
Serilizes the triangle data.
stream | Stream |
write | Write or read |
navMesh | The navmesh this triangle belongs to. |
Int32 Quantum.NavMeshTriangle.Vertex0 |
Vertex index 0 poiting into the NavMesh.Vertices array.
Int32 Quantum.NavMeshTriangle.Vertex1 |
Vertex index 1 poiting into the NavMesh.Vertices array.
Int32 Quantum.NavMeshTriangle.Vertex2 |
Vertex index 2 poiting into the NavMesh.Vertices array.
NavMeshPortal [] Quantum.NavMeshTriangle.Neighbors |
All neighboring triangles.
int [] Quantum.NavMeshTriangle.Links |
All links from this triangle pointing into NavMesh.Links"/>.
int [] Quantum.NavMeshTriangle.Borders |
All borders on this navmesh triangle pointing into NavMesh.Borders.
int Quantum.NavMeshTriangle.Area |
The area code of the triangle.
NavMeshRegionMask Quantum.NavMeshTriangle.Regions |
The region mask of this triangle.
FP Quantum.NavMeshTriangle.Cost |
The cost modifier of the triangle.
FPVector3 Quantum.NavMeshTriangle.Normal |
The normal of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.
FPVector3 Quantum.NavMeshTriangle.Center |
The center of this triangle. May be computed during loading if NavMesh.SerializeType is not NavMeshSerializeType.FullWithMetaData.