com.bulletphysics.collision.shapes
Class ConvexInternalShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
com.bulletphysics.collision.shapes.ConvexInternalShape
- Direct Known Subclasses:
- CapsuleShape, ConeShape, MinkowskiSumShape, PolyhedralConvexShape, SphereShape
public abstract class ConvexInternalShape
- extends ConvexShape
ConvexInternalShape is an internal base class, shared by most convex shape implementations.
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape |
calculateLocalInertia, calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer |
ConvexInternalShape
public ConvexInternalShape()
getAabb
public void getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
- getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
- Specified by:
getAabb
in class CollisionShape
getAabbSlow
public void getAabbSlow(Transform trans,
Vector3f minAabb,
Vector3f maxAabb)
- Specified by:
getAabbSlow
in class ConvexShape
localGetSupportingVertex
public Vector3f localGetSupportingVertex(Vector3f vec,
Vector3f out)
- Specified by:
localGetSupportingVertex
in class ConvexShape
setLocalScaling
public void setLocalScaling(Vector3f scaling)
- Specified by:
setLocalScaling
in class ConvexShape
getLocalScaling
public Vector3f getLocalScaling(Vector3f out)
- Specified by:
getLocalScaling
in class ConvexShape
getMargin
public float getMargin()
- Specified by:
getMargin
in class ConvexShape
setMargin
public void setMargin(float margin)
- Specified by:
setMargin
in class ConvexShape
getNumPreferredPenetrationDirections
public int getNumPreferredPenetrationDirections()
- Specified by:
getNumPreferredPenetrationDirections
in class ConvexShape
getPreferredPenetrationDirection
public void getPreferredPenetrationDirection(int index,
Vector3f penetrationVector)
- Specified by:
getPreferredPenetrationDirection
in class ConvexShape