Package org.recast4j.recast
Class CompactHeightfield
java.lang.Object
org.recast4j.recast.CompactHeightfield
A compact, static heightfield representing unobstructed space.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]Array containing area id data.final float[]The maximum bounds in world space.final float[]The minimum bounds in world space.intThe AABB border size used during the build of the field.Array of cells.floatThe height of each cell.floatThe size of each cell.int[]Array containing border distance data.intThe height of the heightfield.intThe maximum distance value of any span within the field.intThe maximum region id of any span within the field.intThe number of spans in the heightfield.Array of spans.intThe walkable climb used during the build of the field.intThe walkable height used during the build of the field.intThe width of the heightfield. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
width
public int widthThe width of the heightfield. (Along the x-axis in cell units.) -
height
public int heightThe height of the heightfield. (Along the z-axis in cell units.) -
spanCount
public int spanCountThe number of spans in the heightfield. -
walkableHeight
public int walkableHeightThe walkable height used during the build of the field. (See: RecastConfig::walkableHeight) -
walkableClimb
public int walkableClimbThe walkable climb used during the build of the field. (See: RecastConfig::walkableClimb) -
borderSize
public int borderSizeThe AABB border size used during the build of the field. (See: RecastConfig::borderSize) -
maxDistance
public int maxDistanceThe maximum distance value of any span within the field. -
maxRegions
public int maxRegionsThe maximum region id of any span within the field. -
bmin
public final float[] bminThe minimum bounds in world space. [(x, y, z)] -
bmax
public final float[] bmaxThe maximum bounds in world space. [(x, y, z)] -
cs
public float csThe size of each cell. (On the xz-plane.) -
ch
public float chThe height of each cell. (The minimum increment along the y-axis.) -
cells
Array of cells. [Size: #width*#height] -
spans
Array of spans. [Size: #spanCount] -
dist
public int[] distArray containing border distance data. [Size: #spanCount] -
areas
public int[] areasArray containing area id data. [Size: #spanCount]
-
-
Constructor Details
-
CompactHeightfield
public CompactHeightfield()
-