com.bulletphysics.collision.shapes
Class ConvexShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
- Direct Known Subclasses:
- ConvexInternalShape, UniformScalingShape
public abstract class ConvexShape
- extends CollisionShape
ConvexShape is an abstract shape class. It describes general convex shapes
using the localGetSupportingVertex
interface
used in combination with GJK or ConvexCast.
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape |
calculateLocalInertia, calculateTemporalAabb, getAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer |
MAX_PREFERRED_PENETRATION_DIRECTIONS
public static final int MAX_PREFERRED_PENETRATION_DIRECTIONS
- See Also:
- Constant Field Values
ConvexShape
public ConvexShape()
localGetSupportingVertex
public abstract Vector3f localGetSupportingVertex(Vector3f vec,
Vector3f out)
localGetSupportingVertexWithoutMargin
public abstract Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec,
Vector3f out)
batchedUnitVectorGetSupportingVertexWithoutMargin
public abstract void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors)
getAabbSlow
public abstract void getAabbSlow(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
setLocalScaling
public abstract void setLocalScaling(Vector3f scaling)
- Specified by:
setLocalScaling
in class CollisionShape
getLocalScaling
public abstract Vector3f getLocalScaling(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,
Vector3f penetrationVector)