A cell is a column of voxels represented in Spans.
More...
A cell is a column of voxels represented in Spans.
Definition at line 13 of file Cell.cs.
◆ Cell()
SharpNav.Cell.Cell |
( |
int |
height | ) |
|
Initializes a new instance of the Cell class.
- Parameters
-
height | The number of voxels in the column. |
Definition at line 22 of file Cell.cs.
◆ AddSpan()
void SharpNav.Cell.AddSpan |
( |
Span |
span | ) |
|
Adds a Span to the cell.
- Parameters
-
- Exceptions
-
ArgumentException | Thrown if an invalid span is provided. |
Definition at line 121 of file Cell.cs.
◆ Height
Gets the height of the cell in number of voxels.
Definition at line 31 of file Cell.cs.
◆ SpanCount
int SharpNav.Cell.SpanCount |
|
get |
Gets the number of spans in the cell.
Definition at line 42 of file Cell.cs.
◆ Spans
ReadOnlyCollection<Span> SharpNav.Cell.Spans |
|
get |
Gets a readonly list of all the Spans contained in the cell.
A readonly list of spans.
Definition at line 70 of file Cell.cs.
◆ this[int location]
Span? SharpNav.Cell.this[int location] |
|
get |
Gets the Span that contains the specified voxel.
- Parameters
-
location | The voxel to search for. |
- Returns
- The span containing the voxel. Null if the voxel is empty.
Definition at line 96 of file Cell.cs.
◆ WalkableSpanCount
int SharpNav.Cell.WalkableSpanCount |
|
get |
Gets the number of spans that are in walkable Areas.
Definition at line 53 of file Cell.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Cell.cs