com.bulletphysics.collision.dispatch
Class ConvexConvexAlgorithm
java.lang.Object
com.bulletphysics.collision.broadphase.CollisionAlgorithm
com.bulletphysics.collision.dispatch.ConvexConvexAlgorithm
public class ConvexConvexAlgorithm
- extends CollisionAlgorithm
ConvexConvexAlgorithm collision algorithm implements time of impact, convex
closest points and penetration depth calculations.
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)
|
ownManifold
public boolean ownManifold
manifoldPtr
public PersistentManifold manifoldPtr
lowLevelOfDetail
public boolean lowLevelOfDetail
ConvexConvexAlgorithm
public ConvexConvexAlgorithm()
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()