com.bulletphysics.collision.broadphase
Class HashedOverlappingPairCache
java.lang.Object
com.bulletphysics.collision.broadphase.OverlappingPairCache
com.bulletphysics.collision.broadphase.HashedOverlappingPairCache
- All Implemented Interfaces:
- OverlappingPairCallback
public class HashedOverlappingPairCache
- extends OverlappingPairCache
Hash-space based Pair Cache.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashedOverlappingPairCache
public HashedOverlappingPairCache()
addOverlappingPair
public BroadphasePair addOverlappingPair(BroadphaseProxy proxy0,
BroadphaseProxy proxy1)
- Add a pair and return the new pair. If the pair already exists,
no new pair is created and the old one is returned.
removeOverlappingPair
public java.lang.Object removeOverlappingPair(BroadphaseProxy proxy0,
BroadphaseProxy proxy1,
Dispatcher dispatcher)
needsBroadphaseCollision
public boolean needsBroadphaseCollision(BroadphaseProxy proxy0,
BroadphaseProxy proxy1)
processAllOverlappingPairs
public void processAllOverlappingPairs(OverlapCallback callback,
Dispatcher dispatcher)
- Specified by:
processAllOverlappingPairs
in class OverlappingPairCache
removeOverlappingPairsContainingProxy
public void removeOverlappingPairsContainingProxy(BroadphaseProxy proxy,
Dispatcher dispatcher)
cleanProxyFromPairs
public void cleanProxyFromPairs(BroadphaseProxy proxy,
Dispatcher dispatcher)
- Specified by:
cleanProxyFromPairs
in class OverlappingPairCache
getOverlappingPairArray
public java.util.List<BroadphasePair> getOverlappingPairArray()
- Specified by:
getOverlappingPairArray
in class OverlappingPairCache
cleanOverlappingPair
public void cleanOverlappingPair(BroadphasePair pair,
Dispatcher dispatcher)
- Specified by:
cleanOverlappingPair
in class OverlappingPairCache
findPair
public BroadphasePair findPair(BroadphaseProxy proxy0,
BroadphaseProxy proxy1)
- Specified by:
findPair
in class OverlappingPairCache
getCount
public int getCount()
getOverlapFilterCallback
public OverlapFilterCallback getOverlapFilterCallback()
setOverlapFilterCallback
public void setOverlapFilterCallback(OverlapFilterCallback overlapFilterCallback)
- Specified by:
setOverlapFilterCallback
in class OverlappingPairCache
getNumOverlappingPairs
public int getNumOverlappingPairs()
- Specified by:
getNumOverlappingPairs
in class OverlappingPairCache
hasDeferredRemoval
public boolean hasDeferredRemoval()
- Specified by:
hasDeferredRemoval
in class OverlappingPairCache