com.bulletphysics.collision.broadphase
Class AxisSweep3
java.lang.Object
com.bulletphysics.collision.broadphase.AxisSweep3Internal
com.bulletphysics.collision.broadphase.AxisSweep3
- All Implemented Interfaces:
- BroadphaseInterface
public class AxisSweep3
- extends AxisSweep3Internal
AxisSweep3 is an efficient implementation of the 3d axis sweep and prune broadphase.
It uses arrays rather then lists for storage of the 3 axis. Also it operates using 16 bit integer coordinates instead of floats.
For large worlds and many objects, use AxisSweep3_32 instead. AxisSweep3_32 has higher precision and allows more then 16384 objects at the cost of more memory and bit of performance.
Fields inherited from class com.bulletphysics.collision.broadphase.AxisSweep3Internal |
bpHandleMask, firstFreeHandle, handleSentinel, invalidPair, mask, maxHandles, numHandles, ownsPairCache, pairCache, pEdges, pHandles, quantize, userPairCallback, worldAabbMax, worldAabbMin |
Constructor Summary |
AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax)
|
AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax,
int maxHandles)
|
AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax,
int maxHandles,
OverlappingPairCache pairCache)
|
Methods inherited from class com.bulletphysics.collision.broadphase.AxisSweep3Internal |
addHandle, allocHandle, calculateOverlappingPairs, createProxy, destroyProxy, freeHandle, getBroadphaseAabb, getHandle, getNumHandles, getOverlappingPairCache, getOverlappingPairUserCallback, printStats, quantize, removeHandle, setAabb, setOverlappingPairUserCallback, sortMaxDown, sortMaxUp, sortMinDown, sortMinUp, testAabbOverlap, testOverlap, updateHandle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AxisSweep3
public AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax)
AxisSweep3
public AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax,
int maxHandles)
AxisSweep3
public AxisSweep3(javax.vecmath.Vector3f worldAabbMin,
javax.vecmath.Vector3f worldAabbMax,
int maxHandles,
OverlappingPairCache pairCache)
createEdgeArray
protected AxisSweep3Internal.EdgeArray createEdgeArray(int size)
- Specified by:
createEdgeArray
in class AxisSweep3Internal
createHandle
protected AxisSweep3Internal.Handle createHandle()
- Specified by:
createHandle
in class AxisSweep3Internal
getMask
protected int getMask()
- Specified by:
getMask
in class AxisSweep3Internal