com.bulletphysics.collision.shapes
Class ConvexInternalShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConvexShape
          extended by 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.


Field Summary
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS
 
Constructor Summary
ConvexInternalShape()
           
 
Method Summary
 void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
          getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
 void getAabbSlow(Transform trans, Vector3f minAabb, Vector3f maxAabb)
           
 Vector3f getLocalScaling(Vector3f out)
           
 float getMargin()
           
 int getNumPreferredPenetrationDirections()
           
 void getPreferredPenetrationDirection(int index, Vector3f penetrationVector)
           
 Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
           
 void setLocalScaling(Vector3f scaling)
           
 void setMargin(float margin)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.ConvexShape
batchedUnitVectorGetSupportingVertexWithoutMargin, localGetSupportingVertexWithoutMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateLocalInertia, calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvexInternalShape

public ConvexInternalShape()
Method Detail

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