BroadPhase class

Implementers

Constructors

BroadPhase()

Properties

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

Methods

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).
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
touchProxy(int proxyId) → void
updatePairs(PairCallback callback) → void
Update the pairs. This results in pair callbacks. This can only add pairs. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

NULL_PROXY → const int
-1