com.bulletphysics.collision.broadphase
Class DbvtBroadphase

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

public class DbvtBroadphase
extends BroadphaseInterface


Field Summary
static float DBVT_BP_MARGIN
           
 int dupdates
           
static int DYNAMIC_SET
           
static int FIXED_SET
           
 int fupdates
           
 int gid
           
 OverlappingPairCache paircache
           
 int pid
           
 float predictedframes
           
 boolean releasepaircache
           
 Dbvt[] sets
           
static int STAGECOUNT
           
 int stageCurrent
           
 DbvtProxy[] stageRoots
           
 
Constructor Summary
DbvtBroadphase()
           
DbvtBroadphase(OverlappingPairCache paircache)
           
 
Method Summary
 void calculateOverlappingPairs(Dispatcher dispatcher)
           
 void collide(Dispatcher dispatcher)
           
 BroadphaseProxy createProxy(Vector3f aabbMin, Vector3f aabbMax, BroadphaseNativeType shapeType, Object userPtr, short collisionFilterGroup, short collisionFilterMask, Dispatcher dispatcher, Object multiSapProxy)
           
 void destroyProxy(BroadphaseProxy absproxy, Dispatcher dispatcher)
           
 void getBroadphaseAabb(Vector3f aabbMin, Vector3f aabbMax)
           
 OverlappingPairCache getOverlappingPairCache()
           
 void printStats()
           
 void setAabb(BroadphaseProxy absproxy, Vector3f aabbMin, Vector3f aabbMax, Dispatcher dispatcher)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBVT_BP_MARGIN

public static final float DBVT_BP_MARGIN
See Also:
Constant Field Values

DYNAMIC_SET

public static final int DYNAMIC_SET
See Also:
Constant Field Values

FIXED_SET

public static final int FIXED_SET
See Also:
Constant Field Values

STAGECOUNT

public static final int STAGECOUNT
See Also:
Constant Field Values

sets

public final Dbvt[] sets

stageRoots

public DbvtProxy[] stageRoots

paircache

public OverlappingPairCache paircache

predictedframes

public float predictedframes

stageCurrent

public int stageCurrent

fupdates

public int fupdates

dupdates

public int dupdates

pid

public int pid

gid

public int gid

releasepaircache

public boolean releasepaircache
Constructor Detail

DbvtBroadphase

public DbvtBroadphase()

DbvtBroadphase

public DbvtBroadphase(OverlappingPairCache paircache)
Method Detail

collide

public void collide(Dispatcher dispatcher)

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 absproxy,
                         Dispatcher dispatcher)
Specified by:
destroyProxy in class BroadphaseInterface

setAabb

public void setAabb(BroadphaseProxy absproxy,
                    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