com.bulletphysics.dom
Class HeightfieldTerrainShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConcaveShape
          extended by com.bulletphysics.dom.HeightfieldTerrainShape

public class HeightfieldTerrainShape
extends ConcaveShape


Field Summary
static int XAXIS
           
static int YAXIS
           
static int ZAXIS
           
 
Constructor Summary
HeightfieldTerrainShape(int heightStickWidth, int heightStickLength, float[] heightfieldData, float heightScale, float minHeight, float maxHeight, int upAxis, boolean flipQuadEdges)
           
 
Method Summary
 void calculateLocalInertia(float arg0, Vector3f inertia)
           
 void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
           
 Vector3f getLocalScaling(Vector3f arg0)
           
 String getName()
           
static int getQuantized(float x)
           
 BroadphaseNativeType getShapeType()
           
 void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
           
 void setLocalScaling(Vector3f scaling)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.ConcaveShape
getMargin, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XAXIS

public static final int XAXIS
See Also:
Constant Field Values

YAXIS

public static final int YAXIS
See Also:
Constant Field Values

ZAXIS

public static final int ZAXIS
See Also:
Constant Field Values
Constructor Detail

HeightfieldTerrainShape

public HeightfieldTerrainShape(int heightStickWidth,
                               int heightStickLength,
                               float[] heightfieldData,
                               float heightScale,
                               float minHeight,
                               float maxHeight,
                               int upAxis,
                               boolean flipQuadEdges)
Method Detail

processAllTriangles

public void processAllTriangles(TriangleCallback callback,
                                Vector3f aabbMin,
                                Vector3f aabbMax)
Specified by:
processAllTriangles in class ConcaveShape

calculateLocalInertia

public void calculateLocalInertia(float arg0,
                                  Vector3f inertia)
Specified by:
calculateLocalInertia in class CollisionShape

getAabb

public void getAabb(Transform t,
                    Vector3f aabbMin,
                    Vector3f aabbMax)
Specified by:
getAabb in class CollisionShape

getLocalScaling

public Vector3f getLocalScaling(Vector3f arg0)
Specified by:
getLocalScaling in class CollisionShape

getName

public String getName()
Specified by:
getName in class CollisionShape

getShapeType

public BroadphaseNativeType getShapeType()
Specified by:
getShapeType in class CollisionShape

setLocalScaling

public void setLocalScaling(Vector3f scaling)
Specified by:
setLocalScaling in class CollisionShape

getQuantized

public static int getQuantized(float x)