BroadPhaseStrategy class

Implementers

Constructors

BroadPhaseStrategy()

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

computeHeight() int
Compute the height of the tree.
createProxy(AABB aabb, Object userData) int
Create a proxy. Provide a tight fitting AABB and a userData pointer.
destroyProxy(int proxyId) → void
Destroy a proxy
drawTree(DebugDraw draw) → void
getAreaRatio() double
Get the ratio of the sum of the node areas to the root area.
getFatAABB(int proxyId) AABB
getHeight() int
Compute the height of the binary tree in O(N) time. Should not be called often. [...]
getMaxBalance() int
Get the maximum balance of an node in the tree. The balance is the difference in height of the two children of a node.
getUserData(int proxyId) Object
moveProxy(int proxyId, AABB aabb, Vector2 displacement) bool
Move a proxy with a swepted AABB. If the proxy has moved outside of its fattened AABB, then the proxy is removed from the tree and re-inserted. Otherwise the function returns immediately. @return true if the proxy was re-inserted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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