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[] areas
    Array containing area id data.
    float[] bmax
    The maximum bounds in world space.
    float[] bmin
    The minimum bounds in world space.
    int borderSize
    The AABB border size used during the build of the field.
    CompactCell[] cells
    Array of cells.
    float ch
    The height of each cell.
    float cs
    The size of each cell.
    int[] dist
    Array containing border distance data.
    int height
    The height of the heightfield.
    int maxDistance
    The maximum distance value of any span within the field.
    int maxRegions
    The maximum region id of any span within the field.
    int spanCount
    The number of spans in the heightfield.
    CompactSpan[] spans
    Array of spans.
    int walkableClimb
    The walkable climb used during the build of the field.
    int walkableHeight
    The walkable height used during the build of the field.
    int width
    The 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 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()