|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BroadPhaseStrategy
Method Summary | |
---|---|
int |
computeHeight()
Compute the height of the tree. |
int |
createProxy(AABB aabb,
Object userData)
Create a proxy. |
void |
destroyProxy(int proxyId)
Destroy a proxy |
void |
drawTree(DebugDraw draw)
|
float |
getAreaRatio()
Get the ratio of the sum of the node areas to the root area. |
AABB |
getFatAABB(int proxyId)
|
int |
getHeight()
Compute the height of the binary tree in O(N) time. |
int |
getInsertionCount()
|
int |
getMaxBalance()
Get the maximum balance of an node in the tree. |
Object |
getUserData(int proxyId)
|
boolean |
moveProxy(int proxyId,
AABB aabb,
Vec2 displacement)
Move a proxy with a swepted AABB. |
void |
query(TreeCallback callback,
AABB aabb)
Query an AABB for overlapping proxies. |
void |
raycast(TreeRayCastCallback callback,
RayCastInput input)
Ray-cast against the proxies in the tree. |
Method Detail |
---|
int createProxy(AABB aabb, Object userData)
aabb
- userData
-
void destroyProxy(int proxyId)
proxyId
- boolean moveProxy(int proxyId, AABB aabb, Vec2 displacement)
Object getUserData(int proxyId)
AABB getFatAABB(int proxyId)
void query(TreeCallback callback, AABB aabb)
callback
- araabbgAABB
- void raycast(TreeRayCastCallback callback, RayCastInput input)
input
- the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).callback
- a callback class that is called for each proxy that is hit by the ray.int computeHeight()
int getHeight()
int getMaxBalance()
float getAreaRatio()
int getInsertionCount()
void drawTree(DebugDraw draw)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |