com.bulletphysics.collision.shapes
Class StaticPlaneShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConcaveShape
com.bulletphysics.collision.shapes.StaticPlaneShape
public class StaticPlaneShape
- extends ConcaveShape
StaticPlaneShape simulates an infinite non-moving (static) collision plane.
StaticPlaneShape
public StaticPlaneShape(Vector3f planeNormal,
float planeConstant)
getPlaneNormal
public Vector3f getPlaneNormal(Vector3f out)
getPlaneConstant
public float getPlaneConstant()
processAllTriangles
public void processAllTriangles(TriangleCallback callback,
Vector3f aabbMin,
Vector3f aabbMax)
- Specified by:
processAllTriangles
in class ConcaveShape
getAabb
public void getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
- Specified by:
getAabb
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
getLocalScaling
public Vector3f getLocalScaling(Vector3f out)
- Specified by:
getLocalScaling
in class CollisionShape
calculateLocalInertia
public void calculateLocalInertia(float mass,
Vector3f inertia)
- Specified by:
calculateLocalInertia
in class CollisionShape
getName
public String getName()
- Specified by:
getName
in class CollisionShape