Package org.recast4j.recast
Class CompactHeightfield
java.lang.Object
org.recast4j.recast.CompactHeightfield
public class CompactHeightfield
extends java.lang.Object
A compact, static heightfield representing unobstructed space.
-
Field Summary
Fields Modifier and Type Field Description int[]areasArray containing area id data.float[]bmaxThe maximum bounds in world space.float[]bminThe minimum bounds in world space.intborderSizeThe AABB border size used during the build of the field.CompactCell[]cellsArray of cells.floatchThe height of each cell.floatcsThe size of each cell.int[]distArray containing border distance data.intheightThe height of the heightfield.intmaxDistanceThe maximum distance value of any span within the field.intmaxRegionsThe maximum region id of any span within the field.intspanCountThe number of spans in the heightfield.CompactSpan[]spansArray of spans.intwalkableClimbThe walkable climb used during the build of the field.intwalkableHeightThe walkable height used during the build of the field.intwidthThe width of the heightfield. -
Constructor Summary
Constructors Constructor Description CompactHeightfield() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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()
-