메소드 | 설명 | |
---|---|---|
BroadPhase ( ) : System | ||
CreateProxy ( AABB aabb, object userData ) : int |
Create a proxy with an initial AABB. Pairs are not reported until updatePairs is called.
|
|
DestroyProxy ( int proxyId ) : void |
Destroy a proxy. It is up to the client to remove any pairs.
|
|
DrawTree ( |
||
GetFatAABB ( int proxyId ) : AABB | ||
GetUserData ( int proxyId ) : object | ||
MoveProxy ( int proxyId, AABB aabb, |
Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized the proxy pairs (for your time step).
|
|
Query ( ITreeCallback callback, AABB aabb ) : void |
Query an AABB for overlapping proxies. The callback class is called for each proxy that overlaps the supplied AABB.
|
|
Raycast ( ITreeRayCastCallback callback, RayCastInput input ) : void |
Ray-cast against the proxies in the tree. This relies on the callback to perform a exact ray-cast in the case were the proxy contains a shape. The callback also performs the any collision filtering. This has performance roughly equal to k * log(n), where k is the number of collisions and n is the number of proxies in the tree.
|
|
TestOverlap ( int proxyIdA, int proxyIdB ) : bool | ||
TouchProxy ( int proxyId ) : void | ||
TreeCallback ( int proxyId ) : bool |
This is called from DynamicTree::query when we are gathering pairs.
|
|
UpdatePairs ( IPairCallback callback ) : void |
Update the pairs. This results in pair callbacks. This can only add pairs.
|
메소드 | 설명 | |
---|---|---|
BufferMove ( int proxyId ) : void | ||
UnbufferMove ( int proxyId ) : void |
public CreateProxy ( AABB aabb, object userData ) : int | ||
aabb | AABB | |
userData | object | |
리턴 | int |
public DrawTree ( |
||
argDraw | ||
리턴 | void |
public MoveProxy ( int proxyId, AABB aabb, |
||
proxyId | int | |
aabb | AABB | |
displacement | ||
리턴 | void |
public Query ( ITreeCallback callback, AABB aabb ) : void | ||
callback | ITreeCallback | |
aabb | AABB | |
리턴 | void |
public Raycast ( ITreeRayCastCallback callback, RayCastInput input ) : void | ||
callback | ITreeRayCastCallback | a callback class that is called for each proxy that is hit by the ray. |
input | RayCastInput | the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1). |
리턴 | void |
public TestOverlap ( int proxyIdA, int proxyIdB ) : bool | ||
proxyIdA | int | |
proxyIdB | int | |
리턴 | bool |
public UpdatePairs ( IPairCallback callback ) : void | ||
callback | IPairCallback | |
리턴 | void |