Class CompactHeightfield

java.lang.Object
org.recast4j.recast.CompactHeightfield

public class CompactHeightfield extends Object
A compact, static heightfield representing unobstructed space.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int[]
    Array containing area id data.
    final float[]
    The maximum bounds in world space.
    final float[]
    The minimum bounds in world space.
    int
    The AABB border size used during the build of the field.
    Array of cells.
    float
    The height of each cell.
    float
    The size of each cell.
    int[]
    Array containing border distance data.
    int
    The height of the heightfield.
    int
    The maximum distance value of any span within the field.
    int
    The maximum region id of any span within the field.
    int
    The number of spans in the heightfield.
    Array of spans.
    int
    The walkable climb used during the build of the field.
    int
    The walkable height used during the build of the field.
    int
    The width of the heightfield.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 width
      The width of the heightfield. (Along the x-axis in cell units.)
    • height

      public int height
      The height of the heightfield. (Along the z-axis in cell units.)
    • spanCount

      public int spanCount
      The number of spans in the heightfield.
    • walkableHeight

      public int walkableHeight
      The walkable height used during the build of the field. (See: RecastConfig::walkableHeight)
    • walkableClimb

      public int walkableClimb
      The walkable climb used during the build of the field. (See: RecastConfig::walkableClimb)
    • borderSize

      public int borderSize
      The AABB border size used during the build of the field. (See: RecastConfig::borderSize)
    • maxDistance

      public int maxDistance
      The maximum distance value of any span within the field.
    • maxRegions

      public int maxRegions
      The maximum region id of any span within the field.
    • bmin

      public final float[] bmin
      The minimum bounds in world space. [(x, y, z)]
    • bmax

      public final float[] bmax
      The maximum bounds in world space. [(x, y, z)]
    • cs

      public float cs
      The size of each cell. (On the xz-plane.)
    • ch

      public float ch
      The height of each cell. (The minimum increment along the y-axis.)
    • cells

      public CompactCell[] cells
      Array of cells. [Size: #width*#height]
    • spans

      public CompactSpan[] spans
      Array of spans. [Size: #spanCount]
    • dist

      public int[] dist
      Array containing border distance data. [Size: #spanCount]
    • areas

      public int[] areas
      Array containing area id data. [Size: #spanCount]
  • Constructor Details

    • CompactHeightfield

      public CompactHeightfield()