public interface BroadPhase
| Modifier and Type | Field and Description |
|---|---|
static int |
NULL_PROXY |
| Modifier and Type | Method and Description |
|---|---|
int |
createProxy(AABB aabb,
Object userData)
Create a proxy with an initial AABB.
|
void |
destroyProxy(int proxyId)
Destroy a proxy.
|
void |
drawTree(DebugDraw argDraw) |
AABB |
getFatAABB(int proxyId) |
int |
getProxyCount()
Get the number of proxies.
|
int |
getTreeBalance() |
int |
getTreeHeight()
Get the height of the embedded tree.
|
float |
getTreeQuality() |
Object |
getUserData(int proxyId) |
void |
moveProxy(int proxyId,
AABB aabb,
Vec2 displacement)
Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized
the proxy pairs (for your time step).
|
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.
|
boolean |
testOverlap(int proxyIdA,
int proxyIdB) |
void |
touchProxy(int proxyId) |
void |
updatePairs(PairCallback callback)
Update the pairs.
|
static final int NULL_PROXY
int createProxy(AABB aabb, Object userData)
aabb - userData - void destroyProxy(int proxyId)
proxyId - void moveProxy(int proxyId,
AABB aabb,
Vec2 displacement)
void touchProxy(int proxyId)
Object getUserData(int proxyId)
AABB getFatAABB(int proxyId)
boolean testOverlap(int proxyIdA,
int proxyIdB)
int getProxyCount()
void drawTree(DebugDraw argDraw)
void updatePairs(PairCallback callback)
callback - void query(TreeCallback callback, AABB aabb)
callback - aabb - 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 getTreeHeight()
int getTreeBalance()
float getTreeQuality()
Copyright © 2017. All rights reserved.