A* Pathfinding Project  3.6.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
VoxelArea Class Reference

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here
More...

Detailed Description

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Public Member Functions

 VoxelArea (int width, int depth)
 
void AddLinkedSpan (int index, uint bottom, uint top, int area, int voxelWalkableClimb)
 
int GetSpanCount ()
 
int GetSpanCountAll ()
 
void Reset ()
 

Public Attributes

int[] areaTypes
 
const float AvgSpanLayerCountEstimate = 8
 Initial estimate on the average number of spans (layers) in the voxel representation.
 
CompactVoxelCell[] compactCells
 
int compactSpanCount
 
CompactVoxelSpan[] compactSpans
 
readonly int depth = 0
 The depth of the field along the z-axis.
 
int[] DirectionX
 
int[] DirectionZ
 
ushort[] dist
 
const uint InvalidSpanValue = ~0U
 Constant for default LinkedVoxelSpan top and bottom values.
 
LinkedVoxelSpan[] linkedSpans
 
ushort maxDistance
 
const uint MaxHeight = 65536
 
const int MaxHeightInt = 65536
 
int maxRegions = 0
 
ushort[] tmpUShortArr
 
Vector3[] VectorDirection
 
readonly int width = 0
 The width of the field along the x-axis.
 

Private Member Functions

void PushToSpanRemovedStack (int index)
 
void ResetLinkedVoxelSpans ()
 

Private Attributes

int linkedSpanCount
 
int[] removedStack = new int[128]
 
int removedStackCount = 0
 

Constructor & Destructor Documentation

VoxelArea ( int  width,
int  depth 
)

Member Function Documentation

void AddLinkedSpan ( int  index,
uint  bottom,
uint  top,
int  area,
int  voxelWalkableClimb 
)
int GetSpanCount ( )
int GetSpanCountAll ( )
void PushToSpanRemovedStack ( int  index)
private
void Reset ( )
void ResetLinkedVoxelSpans ( )
private

Member Data Documentation

int [] areaTypes
const float AvgSpanLayerCountEstimate = 8

Initial estimate on the average number of spans (layers) in the voxel representation.

Should be greater or equal to 1

CompactVoxelCell [] compactCells
int compactSpanCount
CompactVoxelSpan [] compactSpans
readonly int depth = 0

The depth of the field along the z-axis.

[Limit: >= 0] [Units: vx]

int [] DirectionX
int [] DirectionZ
ushort [] dist
const uint InvalidSpanValue = ~0U

Constant for default LinkedVoxelSpan top and bottom values.

It is important with the U since ~0 != ~0U This can be used to check if a LinkedVoxelSpan is valid and not just the default span

int linkedSpanCount
private
LinkedVoxelSpan [] linkedSpans
ushort maxDistance
const uint MaxHeight = 65536
const int MaxHeightInt = 65536
int maxRegions = 0
int [] removedStack = new int[128]
private
int removedStackCount = 0
private
ushort [] tmpUShortArr
Vector3 [] VectorDirection
readonly int width = 0

The width of the field along the x-axis.

[Limit: >= 0] [Units: vx]


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