com.bulletphysics.collision.broadphase
Class SimpleBroadphase

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

public class SimpleBroadphase
extends Object
implements BroadphaseInterface

SimpleBroadphase is a brute force AABB culling broadphase based on O(n^2) AABB checks. Consider using better broadphase implementations like AxisSweep3 or AxisSweep3_32.


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 interface BroadphaseInterface

destroyProxy

public void destroyProxy(BroadphaseProxy proxyOrg,
                         Dispatcher dispatcher)
Specified by:
destroyProxy in interface BroadphaseInterface

setAabb

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

calculateOverlappingPairs

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

getOverlappingPairCache

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

getBroadphaseAabb

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

printStats

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