com.bulletphysics.collision.broadphase
Class Dispatcher
java.lang.Object
com.bulletphysics.collision.broadphase.Dispatcher
- Direct Known Subclasses:
- CollisionDispatcher
public abstract class Dispatcher
- extends Object
Dispatcher abstract class can be used in combination with broadphase to dispatch
calculations for overlapping pairs. For example for pairwise collision detection,
calculating contact points stored in PersistentManifold
or user callbacks
(game logic).
Dispatcher
public Dispatcher()
findAlgorithm
public final CollisionAlgorithm findAlgorithm(CollisionObject body0,
CollisionObject body1)
findAlgorithm
public abstract CollisionAlgorithm findAlgorithm(CollisionObject body0,
CollisionObject body1,
PersistentManifold sharedManifold)
getNewManifold
public abstract PersistentManifold getNewManifold(Object body0,
Object body1)
releaseManifold
public abstract void releaseManifold(PersistentManifold manifold)
clearManifold
public abstract void clearManifold(PersistentManifold manifold)
needsCollision
public abstract boolean needsCollision(CollisionObject body0,
CollisionObject body1)
needsResponse
public abstract boolean needsResponse(CollisionObject body0,
CollisionObject body1)
dispatchAllCollisionPairs
public abstract void dispatchAllCollisionPairs(OverlappingPairCache pairCache,
DispatcherInfo dispatchInfo,
Dispatcher dispatcher)
getNumManifolds
public abstract int getNumManifolds()
getManifoldByIndexInternal
public abstract PersistentManifold getManifoldByIndexInternal(int index)
getInternalManifoldPointer
public abstract ObjectArrayList<PersistentManifold> getInternalManifoldPointer()
freeCollisionAlgorithm
public abstract void freeCollisionAlgorithm(CollisionAlgorithm algo)