com.bulletphysics.collision.dispatch
Class ConvexConcaveCollisionAlgorithm

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.CollisionAlgorithm
      extended by com.bulletphysics.collision.dispatch.ConvexConcaveCollisionAlgorithm

public class ConvexConcaveCollisionAlgorithm
extends CollisionAlgorithm

ConvexConcaveCollisionAlgorithm supports collision between convex shapes and (concave) trianges meshes.


Nested Class Summary
static class ConvexConcaveCollisionAlgorithm.CreateFunc
           
static class ConvexConcaveCollisionAlgorithm.SwappedCreateFunc
           
 
Constructor Summary
ConvexConcaveCollisionAlgorithm()
           
 
Method Summary
 float calculateTimeOfImpact(CollisionObject body0, CollisionObject body1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
           
 void clearCache()
           
 void destroy()
           
 void getAllContactManifolds(ObjectArrayList<PersistentManifold> manifoldArray)
           
 void init(CollisionAlgorithmConstructionInfo ci, CollisionObject body0, CollisionObject body1, boolean isSwapped)
           
 void processCollision(CollisionObject body0, CollisionObject body1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
           
 
Methods inherited from class com.bulletphysics.collision.broadphase.CollisionAlgorithm
init, init, internalGetCreateFunc, internalSetCreateFunc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvexConcaveCollisionAlgorithm

public ConvexConcaveCollisionAlgorithm()
Method Detail

init

public void init(CollisionAlgorithmConstructionInfo ci,
                 CollisionObject body0,
                 CollisionObject body1,
                 boolean isSwapped)

destroy

public void destroy()
Specified by:
destroy in class CollisionAlgorithm

processCollision

public void processCollision(CollisionObject body0,
                             CollisionObject body1,
                             DispatcherInfo dispatchInfo,
                             ManifoldResult resultOut)
Specified by:
processCollision in class CollisionAlgorithm

calculateTimeOfImpact

public float calculateTimeOfImpact(CollisionObject body0,
                                   CollisionObject body1,
                                   DispatcherInfo dispatchInfo,
                                   ManifoldResult resultOut)
Specified by:
calculateTimeOfImpact in class CollisionAlgorithm

getAllContactManifolds

public void getAllContactManifolds(ObjectArrayList<PersistentManifold> manifoldArray)
Specified by:
getAllContactManifolds in class CollisionAlgorithm

clearCache

public void clearCache()