com.bulletphysics.collision.broadphase
Class SimpleBroadphase

java.lang.Object
  extended by com.bulletphysics.collision.broadphase.BroadphaseInterface
      extended by com.bulletphysics.collision.broadphase.SimpleBroadphase

public class SimpleBroadphase
extends BroadphaseInterface

SimpleBroadphase is just a unit-test for AxisSweep3, AxisSweep3_32, or DbvtBroadphase, so use those classes instead. It is a brute force AABB culling broadphase based on O(n^2) AABB checks.


Constructor Summary
SimpleBroadphase()
           
SimpleBroadphase(int maxProxies)
           
SimpleBroadphase(int maxProxies, OverlappingPairCache overlappingPairCache)
           
 
Method Summary
 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 proxyOrg, Dispatcher dispatcher)
           
 void getBroadphaseAabb(Vector3f aabbMin, Vector3f aabbMax)
           
 OverlappingPairCache getOverlappingPairCache()
           
 void printStats()
           
 void setAabb(BroadphaseProxy proxy, Vector3f aabbMin, Vector3f aabbMax, Dispatcher dispatcher)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBroadphase

public SimpleBroadphase()

SimpleBroadphase

public SimpleBroadphase(int maxProxies)

SimpleBroadphase

public SimpleBroadphase(int maxProxies,
                        OverlappingPairCache overlappingPairCache)
Method Detail

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 proxyOrg,
                         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

calculateOverlappingPairs

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

getOverlappingPairCache

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

getBroadphaseAabb

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

printStats

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