use of spacegraph.space3d.phys.Collidable in project narchy by automenta.
the class PairCachingGhostObject method removeOverlappingObjectInternal.
@Override
public void removeOverlappingObjectInternal(Broadphasing otherProxy, Intersecter intersecter, Broadphasing thisProxy1) {
Collidable otherObject = otherProxy.data;
Broadphasing actualThisProxy = thisProxy1 != null ? thisProxy1 : broadphase;
assert (actualThisProxy != null);
assert (otherObject != null);
int index = overlappingObjects.indexOf(otherObject);
if (index != -1) {
// return array[index];
overlappingObjects.setFast(index, overlappingObjects.get(overlappingObjects.size() - 1));
overlappingObjects.removeFast(overlappingObjects.size() - 1);
hashPairCache.removeOverlappingPair(actualThisProxy, otherProxy, intersecter);
}
}
Aggregations