com.bulletphysics.collision.shapes
Class CollisionShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
- Direct Known Subclasses:
- CompoundShape, ConcaveShape, ConvexShape
public abstract class CollisionShape
- extends Object
CollisionShape class provides an interface for collision shapes that can be
shared among CollisionObject
s.
CollisionShape
public CollisionShape()
getAabb
public abstract void getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
getBoundingSphere
public void getBoundingSphere(Vector3f center,
float[] radius)
getAngularMotionDisc
public float getAngularMotionDisc()
calculateTemporalAabb
public void calculateTemporalAabb(Transform curTrans,
Vector3f linvel,
Vector3f angvel,
float timeStep,
Vector3f temporalAabbMin,
Vector3f temporalAabbMax)
isPolyhedral
public boolean isPolyhedral()
isConvex
public boolean isConvex()
isConcave
public boolean isConcave()
isCompound
public boolean isCompound()
isInfinite
public boolean isInfinite()
getShapeType
public abstract BroadphaseNativeType getShapeType()
setLocalScaling
public abstract void setLocalScaling(Vector3f scaling)
getLocalScaling
public abstract Vector3f getLocalScaling(Vector3f out)
calculateLocalInertia
public abstract void calculateLocalInertia(float mass,
Vector3f inertia)
getName
public abstract String getName()
setMargin
public abstract void setMargin(float margin)
getMargin
public abstract float getMargin()
setUserPointer
public void setUserPointer(Object userPtr)
getUserPointer
public Object getUserPointer()