com.bulletphysics.collision.dispatch
Class CollisionDispatcher

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.Dispatcher
      extended by com.bulletphysics.collision.dispatch.CollisionDispatcher

public class CollisionDispatcher
extends Dispatcher

CollisionDispatcher supports algorithms that handle ConvexConvex and ConvexConcave collision pairs. Time of Impact, Closest Points and Penetration Depth.


Constructor Summary
CollisionDispatcher(CollisionConfiguration collisionConfiguration)
           
 
Method Summary
 void clearManifold(PersistentManifold manifold)
           
 void dispatchAllCollisionPairs(OverlappingPairCache pairCache, DispatcherInfo dispatchInfo, Dispatcher dispatcher)
           
 CollisionAlgorithm findAlgorithm(CollisionObject body0, CollisionObject body1, PersistentManifold sharedManifold)
           
 void freeCollisionAlgorithm(CollisionAlgorithm algo)
           
 CollisionConfiguration getCollisionConfiguration()
           
 ObjectArrayList<PersistentManifold> getInternalManifoldPointer()
           
 PersistentManifold getManifoldByIndexInternal(int index)
           
 NearCallback getNearCallback()
           
 PersistentManifold getNewManifold(Object b0, Object b1)
           
 int getNumManifolds()
           
 boolean needsCollision(CollisionObject body0, CollisionObject body1)
           
 boolean needsResponse(CollisionObject body0, CollisionObject body1)
           
 void registerCollisionCreateFunc(int proxyType0, int proxyType1, CollisionAlgorithmCreateFunc createFunc)
           
 void releaseManifold(PersistentManifold manifold)
           
 void setCollisionConfiguration(CollisionConfiguration collisionConfiguration)
           
 void setNearCallback(NearCallback nearCallback)
           
 
Methods inherited from class com.bulletphysics.collision.broadphase.Dispatcher
findAlgorithm
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionDispatcher

public CollisionDispatcher(CollisionConfiguration collisionConfiguration)
Method Detail

registerCollisionCreateFunc

public void registerCollisionCreateFunc(int proxyType0,
                                        int proxyType1,
                                        CollisionAlgorithmCreateFunc createFunc)

getNearCallback

public NearCallback getNearCallback()

setNearCallback

public void setNearCallback(NearCallback nearCallback)

getCollisionConfiguration

public CollisionConfiguration getCollisionConfiguration()

setCollisionConfiguration

public void setCollisionConfiguration(CollisionConfiguration collisionConfiguration)

findAlgorithm

public CollisionAlgorithm findAlgorithm(CollisionObject body0,
                                        CollisionObject body1,
                                        PersistentManifold sharedManifold)
Specified by:
findAlgorithm in class Dispatcher

freeCollisionAlgorithm

public void freeCollisionAlgorithm(CollisionAlgorithm algo)
Specified by:
freeCollisionAlgorithm in class Dispatcher

getNewManifold

public PersistentManifold getNewManifold(Object b0,
                                         Object b1)
Specified by:
getNewManifold in class Dispatcher

releaseManifold

public void releaseManifold(PersistentManifold manifold)
Specified by:
releaseManifold in class Dispatcher

clearManifold

public void clearManifold(PersistentManifold manifold)
Specified by:
clearManifold in class Dispatcher

needsCollision

public boolean needsCollision(CollisionObject body0,
                              CollisionObject body1)
Specified by:
needsCollision in class Dispatcher

needsResponse

public boolean needsResponse(CollisionObject body0,
                             CollisionObject body1)
Specified by:
needsResponse in class Dispatcher

dispatchAllCollisionPairs

public void dispatchAllCollisionPairs(OverlappingPairCache pairCache,
                                      DispatcherInfo dispatchInfo,
                                      Dispatcher dispatcher)
Specified by:
dispatchAllCollisionPairs in class Dispatcher

getNumManifolds

public int getNumManifolds()
Specified by:
getNumManifolds in class Dispatcher

getManifoldByIndexInternal

public PersistentManifold getManifoldByIndexInternal(int index)
Specified by:
getManifoldByIndexInternal in class Dispatcher

getInternalManifoldPointer

public ObjectArrayList<PersistentManifold> getInternalManifoldPointer()
Specified by:
getInternalManifoldPointer in class Dispatcher