com.bulletphysics.collision.broadphase
Class CollisionAlgorithm

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.CollisionAlgorithm
Direct Known Subclasses:
CompoundCollisionAlgorithm, ConvexConcaveCollisionAlgorithm, ConvexConvexAlgorithm, ConvexPlaneCollisionAlgorithm, EmptyAlgorithm, GImpactCollisionAlgorithm, SphereSphereCollisionAlgorithm

public abstract class CollisionAlgorithm
extends Object

Collision algorithm for handling narrowphase or midphase collision detection between two collision object types.


Constructor Summary
CollisionAlgorithm()
           
 
Method Summary
abstract  float calculateTimeOfImpact(CollisionObject body0, CollisionObject body1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
           
abstract  void destroy()
           
abstract  void getAllContactManifolds(ObjectArrayList<PersistentManifold> manifoldArray)
           
 void init()
           
 void init(CollisionAlgorithmConstructionInfo ci)
           
 CollisionAlgorithmCreateFunc internalGetCreateFunc()
           
 void internalSetCreateFunc(CollisionAlgorithmCreateFunc func)
           
abstract  void processCollision(CollisionObject body0, CollisionObject body1, DispatcherInfo dispatchInfo, ManifoldResult resultOut)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionAlgorithm

public CollisionAlgorithm()
Method Detail

init

public void init()

init

public void init(CollisionAlgorithmConstructionInfo ci)

destroy

public abstract void destroy()

processCollision

public abstract void processCollision(CollisionObject body0,
                                      CollisionObject body1,
                                      DispatcherInfo dispatchInfo,
                                      ManifoldResult resultOut)

calculateTimeOfImpact

public abstract float calculateTimeOfImpact(CollisionObject body0,
                                            CollisionObject body1,
                                            DispatcherInfo dispatchInfo,
                                            ManifoldResult resultOut)

getAllContactManifolds

public abstract void getAllContactManifolds(ObjectArrayList<PersistentManifold> manifoldArray)

internalSetCreateFunc

public final void internalSetCreateFunc(CollisionAlgorithmCreateFunc func)

internalGetCreateFunc

public final CollisionAlgorithmCreateFunc internalGetCreateFunc()