Class NavSpaceBlock
Namespace: ValveResourceFormat.NavMesh
Assembly: ValveResourceFormat.dll
A convex volume of a NavSpaceFile in which the centre of a flying or swimming agent can move freely. Blocks never extend past their grid cell, and neighbouring blocks may overlap.
csharp
public class NavSpaceBlockInheritance
object ← NavSpaceBlock
Properties
Bounds
Gets the bounding box of the block.
csharp
public AABB Bounds { get; init; }Property Value
CellIndex
Gets the index of the grid cell this block belongs to, see NavSpaceFile.Cells.
csharp
public int CellIndex { get; init; }Property Value
int
Id
Gets the block id, numbering all blocks of the file from 1 in file order.
csharp
public uint Id { get; init; }Property Value
uint
Position
Gets the mean of the block's hull vertices.
csharp
public Vector3 Position { get; init; }Property Value
TouchesCellBoundary
Gets whether the block touches a face of its grid cell. Only these blocks can have transitions to blocks in neighbouring cells.
csharp
public bool TouchesCellBoundary { get; init; }Property Value
bool
Vertices
Gets the vertices of the convex hull of the block, in no particular order.
csharp
public Vector3[] Vertices { get; init; }Property Value
Vector3[]

