Class ClimbableIndex
One scene's climbables filed by horizontal cell (CellMetres): each climbable in every cell its line's footprint touches. Built once per scene; queries allocate nothing once the scratch has grown.
public sealed class ClimbableIndex
- Inheritance
-
ClimbableIndex
- Inherited Members
Constructors
ClimbableIndex(IReadOnlyList<SceneClimbable>)
public ClimbableIndex(IReadOnlyList<SceneClimbable> climbables)
Parameters
climbablesIReadOnlyList<SceneClimbable>
Fields
CellMetres
public const float CellMetres = 16
Field Value
Source
public readonly IReadOnlyList<SceneClimbable> Source
Field Value
Methods
Query(Vector3, float, List<int>)
The indices of every climbable filed in the cells under the square of reach round
at, ascending and each once. False with none.
public bool Query(Vector3 at, float reach, List<int> into)