BroadPhaseStrategy class abstract

Implementers

Constructors

BroadPhaseStrategy()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
fatAABB(int proxyId) AABB
getAreaRatio() double
Get the ratio of the sum of the node areas to the root area.
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.
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. It returns true if the proxy was re-inserted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
userData(int proxyId) Object?

Operators

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