com.bulletphysics.collision.broadphase
Class AxisSweep3Internal

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.BroadphaseInterface
      extended by com.bulletphysics.collision.broadphase.AxisSweep3Internal
Direct Known Subclasses:
AxisSweep3, AxisSweep3_32

public abstract class AxisSweep3Internal
extends BroadphaseInterface

AxisSweep3Internal is an internal base class that implements sweep and prune. Use concrete implementation AxisSweep3 or AxisSweep3_32.


Method Summary
 int addHandle(Vector3f aabbMin, Vector3f aabbMax, Object pOwner, short collisionFilterGroup, short collisionFilterMask, Dispatcher dispatcher, Object multiSapProxy)
           
 void calculateOverlappingPairs(Dispatcher dispatcher)
           
 BroadphaseProxy createProxy(Vector3f aabbMin, Vector3f aabbMax, BroadphaseNativeType shapeType, Object userPtr, short collisionFilterGroup, short collisionFilterMask, Dispatcher dispatcher, Object multiSapProxy)
           
 void destroyProxy(BroadphaseProxy proxy, Dispatcher dispatcher)
           
 void getBroadphaseAabb(Vector3f aabbMin, Vector3f aabbMax)
           
 com.bulletphysics.collision.broadphase.AxisSweep3Internal.Handle getHandle(int index)
           
 int getNumHandles()
           
 OverlappingPairCache getOverlappingPairCache()
           
 OverlappingPairCallback getOverlappingPairUserCallback()
           
 void printStats()
           
 void removeHandle(int handle, Dispatcher dispatcher)
           
 void setAabb(BroadphaseProxy proxy, Vector3f aabbMin, Vector3f aabbMax, Dispatcher dispatcher)
           
 void setOverlappingPairUserCallback(OverlappingPairCallback pairCallback)
           
 boolean testAabbOverlap(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
           
 void updateHandle(int handle, Vector3f aabbMin, Vector3f aabbMax, Dispatcher dispatcher)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumHandles

public int getNumHandles()

calculateOverlappingPairs

public void calculateOverlappingPairs(Dispatcher dispatcher)
Specified by:
calculateOverlappingPairs in class BroadphaseInterface

addHandle

public int addHandle(Vector3f aabbMin,
                     Vector3f aabbMax,
                     Object pOwner,
                     short collisionFilterGroup,
                     short collisionFilterMask,
                     Dispatcher dispatcher,
                     Object multiSapProxy)

removeHandle

public void removeHandle(int handle,
                         Dispatcher dispatcher)

updateHandle

public void updateHandle(int handle,
                         Vector3f aabbMin,
                         Vector3f aabbMax,
                         Dispatcher dispatcher)

getHandle

public com.bulletphysics.collision.broadphase.AxisSweep3Internal.Handle getHandle(int index)

createProxy

public BroadphaseProxy createProxy(Vector3f aabbMin,
                                   Vector3f aabbMax,
                                   BroadphaseNativeType shapeType,
                                   Object userPtr,
                                   short collisionFilterGroup,
                                   short collisionFilterMask,
                                   Dispatcher dispatcher,
                                   Object multiSapProxy)
Specified by:
createProxy in class BroadphaseInterface

destroyProxy

public void destroyProxy(BroadphaseProxy proxy,
                         Dispatcher dispatcher)
Specified by:
destroyProxy in class BroadphaseInterface

setAabb

public void setAabb(BroadphaseProxy proxy,
                    Vector3f aabbMin,
                    Vector3f aabbMax,
                    Dispatcher dispatcher)
Specified by:
setAabb in class BroadphaseInterface

testAabbOverlap

public boolean testAabbOverlap(BroadphaseProxy proxy0,
                               BroadphaseProxy proxy1)

getOverlappingPairCache

public OverlappingPairCache getOverlappingPairCache()
Specified by:
getOverlappingPairCache in class BroadphaseInterface

setOverlappingPairUserCallback

public void setOverlappingPairUserCallback(OverlappingPairCallback pairCallback)

getOverlappingPairUserCallback

public OverlappingPairCallback getOverlappingPairUserCallback()

getBroadphaseAabb

public void getBroadphaseAabb(Vector3f aabbMin,
                              Vector3f aabbMax)
Specified by:
getBroadphaseAabb in class BroadphaseInterface

printStats

public void printStats()
Specified by:
printStats in class BroadphaseInterface