public class SimpleBroadphase extends BroadphaseInterface
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 and Description |
|---|
SimpleBroadphase() |
SimpleBroadphase(int maxProxies) |
SimpleBroadphase(int maxProxies,
OverlappingPairCache overlappingPairCache) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public SimpleBroadphase()
public SimpleBroadphase(int maxProxies)
public SimpleBroadphase(int maxProxies,
OverlappingPairCache overlappingPairCache)
public BroadphaseProxy createProxy(Vector3f aabbMin, Vector3f aabbMax, BroadphaseNativeType shapeType, Object userPtr, short collisionFilterGroup, short collisionFilterMask, Dispatcher dispatcher, Object multiSapProxy)
createProxy in class BroadphaseInterfacepublic void destroyProxy(BroadphaseProxy proxyOrg, Dispatcher dispatcher)
destroyProxy in class BroadphaseInterfacepublic void setAabb(BroadphaseProxy proxy, Vector3f aabbMin, Vector3f aabbMax, Dispatcher dispatcher)
setAabb in class BroadphaseInterfacepublic void calculateOverlappingPairs(Dispatcher dispatcher)
calculateOverlappingPairs in class BroadphaseInterfacepublic OverlappingPairCache getOverlappingPairCache()
getOverlappingPairCache in class BroadphaseInterfacepublic void getBroadphaseAabb(Vector3f aabbMin, Vector3f aabbMax)
getBroadphaseAabb in class BroadphaseInterfacepublic void printStats()
printStats in class BroadphaseInterface