com.bulletphysics.dom
Class HeightfieldTerrainShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConcaveShape
com.bulletphysics.dom.HeightfieldTerrainShape
public class HeightfieldTerrainShape
- extends ConcaveShape
Constructor Summary |
HeightfieldTerrainShape(int heightStickWidth,
int heightStickLength,
float[] heightfieldData,
float heightScale,
float minHeight,
float maxHeight,
int upAxis,
boolean flipQuadEdges)
|
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
HeightfieldTerrainShape
public HeightfieldTerrainShape(int heightStickWidth,
int heightStickLength,
float[] heightfieldData,
float heightScale,
float minHeight,
float maxHeight,
int upAxis,
boolean flipQuadEdges)
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)