com.bulletphysics.collision.shapes
Class CollisionShape

java.lang.Object
  extended by 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 CollisionObjects.


Constructor Summary
CollisionShape()
           
 
Method Summary
abstract  void calculateLocalInertia(float mass, Vector3f inertia)
           
 void calculateTemporalAabb(Transform curTrans, Vector3f linvel, Vector3f angvel, float timeStep, Vector3f temporalAabbMin, Vector3f temporalAabbMax)
           
abstract  void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
           
 float getAngularMotionDisc()
           
 void getBoundingSphere(Vector3f center, float[] radius)
           
abstract  Vector3f getLocalScaling(Vector3f out)
           
abstract  float getMargin()
           
abstract  String getName()
           
abstract  BroadphaseNativeType getShapeType()
           
 Object getUserPointer()
           
 boolean isCompound()
           
 boolean isConcave()
           
 boolean isConvex()
           
 boolean isInfinite()
           
 boolean isPolyhedral()
           
abstract  void setLocalScaling(Vector3f scaling)
           
abstract  void setMargin(float margin)
           
 void setUserPointer(Object userPtr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionShape

public CollisionShape()
Method Detail

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()