Infohazard.HyperNav 1.1.5
3D Navigation for Flying Characters
Loading...
Searching...
No Matches
Infohazard.HyperNav.NavVolumeData Class Reference

The baked data of a NavVolume, saved as an asset. More...

Public Member Functions

void Populate (Vector3[] vertices, NavRegionData[] regions, int[] blockingTriangleIndices)
 Populate the properties of this NavVolumeData. More...
 
void MarkExternalLinksLocalSpace ()
 After updating external links, mark them as being in local space. More...
 
void Clear ()
 Clear the properties of this NavVolumeData. More...
 
void ToInternalData (NavVolume volume, out NativeNavVolumeData data, out NavDataInternalPointers pointers)
 Convert this NavVolumeData to the native format so that it can be used by jobs. More...
 

Properties

IReadOnlyList< Vector3 > Vertices [get]
 The vertex positions of all of the volume's regions, in local space. More...
 
IReadOnlyList< NavRegionDataRegions [get]
 The regions of the volume. More...
 
IReadOnlyList< int > BlockingTriangleIndices [get]
 The vertex indices of triangles that define impassible space in the volume. More...
 
bool ExternalLinksAreLocalSpace [get]
 Whether the external links are in local space (false = world space). More...
 

Private Attributes

Vector3[] _vertices
 (Serialized) The vertex positions of all of the volume's regions, in local space. More...
 
NavRegionData[] _regions
 (Serialized) The regions of the volume. More...
 
int[] _blockingTriangleIndices
 (Serialized) The vertex indices of triangles that define impassible space in the volume. More...
 
bool _externalLinksAreLocalSpace
 (Serialized) Whether the external links are in local space (false = world space). More...
 

Detailed Description

The baked data of a NavVolume, saved as an asset.

Member Function Documentation

◆ Clear()

void Infohazard.HyperNav.NavVolumeData.Clear ( )

Clear the properties of this NavVolumeData.

◆ MarkExternalLinksLocalSpace()

void Infohazard.HyperNav.NavVolumeData.MarkExternalLinksLocalSpace ( )

After updating external links, mark them as being in local space.

◆ Populate()

void Infohazard.HyperNav.NavVolumeData.Populate ( Vector3[]  vertices,
NavRegionData[]  regions,
int[]  blockingTriangleIndices 
)

Populate the properties of this NavVolumeData.

Parameters
verticesVertex positions of the volume's regions.
regionsRegions of the volume.
blockingTriangleIndicesIndices of triangles that define impassible space.

◆ ToInternalData()

void Infohazard.HyperNav.NavVolumeData.ToInternalData ( NavVolume  volume,
out NativeNavVolumeData  data,
out NavDataInternalPointers  pointers 
)

Convert this NavVolumeData to the native format so that it can be used by jobs.

Parameters
volumeVolume that owns this data.
dataCreated native data.
pointersCreated data structure references (must be kept in order to deallocate).

Member Data Documentation

◆ _blockingTriangleIndices

int [] Infohazard.HyperNav.NavVolumeData._blockingTriangleIndices
private

(Serialized) The vertex indices of triangles that define impassible space in the volume.

◆ _externalLinksAreLocalSpace

bool Infohazard.HyperNav.NavVolumeData._externalLinksAreLocalSpace
private

(Serialized) Whether the external links are in local space (false = world space).

◆ _regions

NavRegionData [] Infohazard.HyperNav.NavVolumeData._regions
private

(Serialized) The regions of the volume.

◆ _vertices

Vector3 [] Infohazard.HyperNav.NavVolumeData._vertices
private

(Serialized) The vertex positions of all of the volume's regions, in local space.

Property Documentation

◆ BlockingTriangleIndices

IReadOnlyList<int> Infohazard.HyperNav.NavVolumeData.BlockingTriangleIndices
get

The vertex indices of triangles that define impassible space in the volume.

◆ ExternalLinksAreLocalSpace

bool Infohazard.HyperNav.NavVolumeData.ExternalLinksAreLocalSpace
get

Whether the external links are in local space (false = world space).

◆ Regions

IReadOnlyList<NavRegionData> Infohazard.HyperNav.NavVolumeData.Regions
get

The regions of the volume.

◆ Vertices

IReadOnlyList<Vector3> Infohazard.HyperNav.NavVolumeData.Vertices
get

The vertex positions of all of the volume's regions, in local space.


The documentation for this class was generated from the following file: