com.bulletphysics.collision.dispatch
Class CollisionDispatcher
java.lang.Object
com.bulletphysics.collision.broadphase.Dispatcher
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.
CollisionDispatcher
public CollisionDispatcher(CollisionConfiguration collisionConfiguration)
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