com.bulletphysics.collision.shapes
Class ConvexShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
- Direct Known Subclasses:
- ConvexInternalShape
public abstract class ConvexShape
- extends CollisionShape
ConvexShape is an abstract shape interface.
It describes general convex shapes using the localGetSupportingVertex interface
used in combination with GJK or btConvexCast
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape |
calculateLocalInertia, calculateTemporalAabb, getAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_PREFERRED_PENETRATION_DIRECTIONS
public static final int MAX_PREFERRED_PENETRATION_DIRECTIONS
- See Also:
- Constant Field Values
ConvexShape
public ConvexShape()
localGetSupportingVertex
public abstract javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec,
javax.vecmath.Vector3f out)
localGetSupportingVertexWithoutMargin
public abstract javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec,
javax.vecmath.Vector3f out)
batchedUnitVectorGetSupportingVertexWithoutMargin
public abstract void batchedUnitVectorGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f[] vectors,
javax.vecmath.Vector3f[] supportVerticesOut,
int numVectors)
getAabbSlow
public abstract void getAabbSlow(Transform t,
javax.vecmath.Vector3f aabbMin,
javax.vecmath.Vector3f aabbMax)
setLocalScaling
public abstract void setLocalScaling(javax.vecmath.Vector3f scaling)
- Specified by:
setLocalScaling
in class CollisionShape
getLocalScaling
public abstract javax.vecmath.Vector3f getLocalScaling(javax.vecmath.Vector3f out)
- Specified by:
getLocalScaling
in class CollisionShape
setMargin
public abstract void setMargin(float margin)
- Specified by:
setMargin
in class CollisionShape
getMargin
public abstract float getMargin()
- Specified by:
getMargin
in class CollisionShape
getNumPreferredPenetrationDirections
public abstract int getNumPreferredPenetrationDirections()
getPreferredPenetrationDirection
public abstract void getPreferredPenetrationDirection(int index,
javax.vecmath.Vector3f penetrationVector)