com.bulletphysics.collision.dispatch
Class ConvexConvexAlgorithm

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

public class ConvexConvexAlgorithm
extends CollisionAlgorithm

ConvexConvexAlgorithm collision algorithm implements time of impact, convex closest points and penetration depth calculations.


Nested Class Summary
static class ConvexConvexAlgorithm.CreateFunc
           
 
Field Summary
 boolean lowLevelOfDetail
           
 PersistentManifold manifoldPtr
           
 boolean ownManifold
           
 
Constructor Summary
ConvexConvexAlgorithm()
           
 
Method Summary
 float calculateTimeOfImpact(CollisionObject col0, CollisionObject col1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
           
 void destroy()
           
 void getAllContactManifolds(ObjectArrayList<PersistentManifold> manifoldArray)
           
 PersistentManifold getManifold()
           
 void init(PersistentManifold mf, CollisionAlgorithmConstructionInfo ci, CollisionObject body0, CollisionObject body1, SimplexSolverInterface simplexSolver, ConvexPenetrationDepthSolver pdSolver)
           
 void processCollision(CollisionObject body0, CollisionObject body1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
          Convex-Convex collision algorithm.
 void setLowLevelOfDetail(boolean useLowLevel)
           
 
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
 

Field Detail

ownManifold

public boolean ownManifold

manifoldPtr

public PersistentManifold manifoldPtr

lowLevelOfDetail

public boolean lowLevelOfDetail
Constructor Detail

ConvexConvexAlgorithm

public ConvexConvexAlgorithm()
Method Detail

init

public void init(PersistentManifold mf,
                 CollisionAlgorithmConstructionInfo ci,
                 CollisionObject body0,
                 CollisionObject body1,
                 SimplexSolverInterface simplexSolver,
                 ConvexPenetrationDepthSolver pdSolver)

destroy

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

setLowLevelOfDetail

public void setLowLevelOfDetail(boolean useLowLevel)

processCollision

public void processCollision(CollisionObject body0,
                             CollisionObject body1,
                             DispatcherInfo dispatchInfo,
                             ManifoldResult resultOut)
Convex-Convex collision algorithm.

Specified by:
processCollision in class CollisionAlgorithm

calculateTimeOfImpact

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

getAllContactManifolds

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

getManifold

public PersistentManifold getManifold()