BroadPhase class





hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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(DebugDraw argDraw) → void
getFatAABB(int proxyId) AABB
getProxyCount() int
Get the number of proxies.
getTreeBalance() int
getTreeHeight() int
Get the height of the embedded tree.
getTreeQuality() double
getUserData(int proxyId) Object
moveProxy(int proxyId, AABB aabb, Vector2 displacement) → void
Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized the proxy pairs (for your time step).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
query(TreeCallback callback, AABB aabb) → void
Query an AABB for overlapping proxies. The callback class is called for each proxy that overlaps the supplied AABB.
raycast(TreeRayCastCallback 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
toString() String
A string representation of this object. [...]
touchProxy(int proxyId) → void
updatePairs(PairCallback callback) → void
Update the pairs. This results in pair callbacks. This can only add pairs.


operator ==(Object other) bool
The equality operator. [...]


NULL_PROXY → const int