com.bulletphysics.collision.broadphase
Class AxisSweep3_32

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.AxisSweep3Internal
      extended by com.bulletphysics.collision.broadphase.AxisSweep3_32
All Implemented Interfaces:
BroadphaseInterface

public class AxisSweep3_32
extends AxisSweep3Internal

AxisSweep3_32 allows higher precision quantization and more objects compared to the AxisSweep3 sweep and prune. This comes at the cost of more memory per handle, and a bit slower performance. It uses arrays rather then lists for storage of the 3 axis.


Nested Class Summary
protected static class AxisSweep3_32.EdgeArrayImpl
           
protected static class AxisSweep3_32.HandleImpl
           
 
Nested classes/interfaces inherited from class com.bulletphysics.collision.broadphase.AxisSweep3Internal
AxisSweep3Internal.EdgeArray, AxisSweep3Internal.Handle
 
Field Summary
 
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_32(javax.vecmath.Vector3f worldAabbMin, javax.vecmath.Vector3f worldAabbMax)
           
AxisSweep3_32(javax.vecmath.Vector3f worldAabbMin, javax.vecmath.Vector3f worldAabbMax, int maxHandles)
           
AxisSweep3_32(javax.vecmath.Vector3f worldAabbMin, javax.vecmath.Vector3f worldAabbMax, int maxHandles, OverlappingPairCache pairCache)
           
 
Method Summary
protected  AxisSweep3Internal.EdgeArray createEdgeArray(int size)
           
protected  AxisSweep3Internal.Handle createHandle()
           
protected  int getMask()
           
 
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
 

Constructor Detail

AxisSweep3_32

public AxisSweep3_32(javax.vecmath.Vector3f worldAabbMin,
                     javax.vecmath.Vector3f worldAabbMax)

AxisSweep3_32

public AxisSweep3_32(javax.vecmath.Vector3f worldAabbMin,
                     javax.vecmath.Vector3f worldAabbMax,
                     int maxHandles)

AxisSweep3_32

public AxisSweep3_32(javax.vecmath.Vector3f worldAabbMin,
                     javax.vecmath.Vector3f worldAabbMax,
                     int maxHandles,
                     OverlappingPairCache pairCache)
Method Detail

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