Struct VoxelGrid
Assembly: AnyPath.dll
Syntax
public struct VoxelGrid : IGraph<VoxelGridCell>, IDisposable
Constructors
VoxelGrid(int3, int3, DirCost[], Allocator, float, int, int)
Declaration
public VoxelGrid(int3 min, int3 max, VoxelGrid.DirCost[] directionsAndCost, Allocator allocator, float defaultCost = 0, int defaultFlags = 0, int capacity = 0)
Parameters
Type |
Name |
Description |
int3 |
min |
|
int3 |
max |
|
DirCost[] |
directionsAndCost |
|
Allocator |
allocator |
|
float |
defaultCost |
|
int |
defaultFlags |
|
int |
capacity |
|
VoxelGrid(int3, int3, Allocator, float, int, int)
Declaration
public VoxelGrid(int3 min, int3 max, Allocator allocator, float defaultCost = 0, int defaultFlags = 0, int capacity = 0)
Parameters
Type |
Name |
Description |
int3 |
min |
|
int3 |
max |
|
Allocator |
allocator |
|
float |
defaultCost |
|
int |
defaultFlags |
|
int |
capacity |
|
VoxelGrid(int3, int3, NativeArray<DirCost>, Allocator, float, int, int)
Declaration
public VoxelGrid(int3 min, int3 max, NativeArray<VoxelGrid.DirCost> directionsAndCost, Allocator allocator, float defaultCost, int defaultFlags, int capacity)
Parameters
Type |
Name |
Description |
int3 |
min |
|
int3 |
max |
|
NativeArray<VoxelGrid.DirCost> |
directionsAndCost |
|
Allocator |
allocator |
|
float |
defaultCost |
|
int |
defaultFlags |
|
int |
capacity |
|
Fields
All26
Declaration
public static readonly VoxelGrid.DirCost[] All26
Field Value
Eight_Up_Down
Declaration
public static readonly VoxelGrid.DirCost[] Eight_Up_Down
Field Value
Foward_Right_Back_Left_Down_StairsUp
Declaration
public static readonly VoxelGrid.DirCost[] Foward_Right_Back_Left_Down_StairsUp
Field Value
Foward_Right_Back_Left_Down_StairsUp_StairsDown
Declaration
public static readonly VoxelGrid.DirCost[] Foward_Right_Back_Left_Down_StairsUp_StairsDown
Field Value
Foward_Right_Back_Left_Up_Down
Declaration
public static readonly VoxelGrid.DirCost[] Foward_Right_Back_Left_Up_Down
Field Value
max
Declaration
Field Value
min
Declaration
Field Value
Properties
DefaultCost
Declaration
public float DefaultCost { get; }
Property Value
DefaultFlags
Declaration
public int DefaultFlags { get; }
Property Value
Methods
ClearCell(int3)
Declaration
public void ClearCell(int3 position)
Parameters
Type |
Name |
Description |
int3 |
position |
|
Collect(VoxelGridCell, ref NativeList<Edge<VoxelGridCell>>)
Declaration
public void Collect(VoxelGridCell node, ref NativeList<Edge<VoxelGridCell>> edgeBuffer)
Parameters
GetCell(int3)
Declaration
public VoxelGridCell GetCell(int3 position)
Parameters
Type |
Name |
Description |
int3 |
position |
|
Returns
GetCost(int3)
Declaration
public float GetCost(int3 position)
Parameters
Type |
Name |
Description |
int3 |
position |
|
Returns
GetEnumerator()
Declaration
public VoxelGrid.Enumerator GetEnumerator()
Returns
GetSetCells(Allocator)
Declaration
public NativeArray<VoxelGridCell> GetSetCells(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Returns
InBounds(int3)
Declaration
public bool InBounds(int3 position)
Parameters
Type |
Name |
Description |
int3 |
position |
|
Returns
SetCell(int3, float, int)
Declaration
public void SetCell(int3 position, float enterCost, int flags = 0)
Parameters
Type |
Name |
Description |
int3 |
position |
|
float |
enterCost |
|
int |
flags |
|
Implements
Extension Methods