Class DynamicTree
java.lang.Object
com.codename1.gaming.physics.box2d.collision.broadphase.DynamicTree
- All Implemented Interfaces:
BroadPhaseStrategy
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intcreateProxy(AABB aabb, Object userData) final voiddestroyProxy(int proxyId) voidvoiddrawTree(DebugDraw argDraw, DynamicTreeNode node, int spot, int height) floatfinal AABBgetFatAABB(int proxyId) intintintfinal ObjectgetUserData(int proxyId) final booleanfinal voidquery(TreeCallback callback, AABB aabb) voidraycast(TreeRayCastCallback callback, RayCastInput input) voidvoidvalidate()
-
Field Details
-
MAX_STACK_SIZE
public static final int MAX_STACK_SIZE- See Also:
-
NULL_NODE
public static final int NULL_NODE- See Also:
-
-
Constructor Details
-
DynamicTree
public DynamicTree()
-
-
Method Details
-
createProxy
- Specified by:
createProxyin interfaceBroadPhaseStrategy
-
destroyProxy
public final void destroyProxy(int proxyId) - Specified by:
destroyProxyin interfaceBroadPhaseStrategy
-
moveProxy
- Specified by:
moveProxyin interfaceBroadPhaseStrategy
-
getUserData
- Specified by:
getUserDatain interfaceBroadPhaseStrategy
-
getFatAABB
- Specified by:
getFatAABBin interfaceBroadPhaseStrategy
-
query
- Specified by:
queryin interfaceBroadPhaseStrategy
-
raycast
- Specified by:
raycastin interfaceBroadPhaseStrategy
-
computeHeight
public final int computeHeight()- Specified by:
computeHeightin interfaceBroadPhaseStrategy
-
validate
public void validate() -
getHeight
public int getHeight()- Specified by:
getHeightin interfaceBroadPhaseStrategy
-
getMaxBalance
public int getMaxBalance()- Specified by:
getMaxBalancein interfaceBroadPhaseStrategy
-
getAreaRatio
public float getAreaRatio()- Specified by:
getAreaRatioin interfaceBroadPhaseStrategy
-
rebuildBottomUp
public void rebuildBottomUp() -
getInsertionCount
public int getInsertionCount()- Specified by:
getInsertionCountin interfaceBroadPhaseStrategy
-
drawTree
- Specified by:
drawTreein interfaceBroadPhaseStrategy
-
drawTree
-