DBVTBroadPhase class

A broad-phase algorithm using dynamic bounding volume tree.

Inheritance

Constructors

DBVTBroadPhase.new()
broad-phase algorithm using dynamic bounding volume tree.

Properties

hashCode int
The hash code for this object.
no setterinherited
leaves List<DBVTNode>
all the leafs in this tree
getter/setter pair
numLeaves int
Number of leafes in the tree
getter/setter pair
numPairChecks int
getter/setter pairinherited
numPairs int
getter/setter pairinherited
pairs List<Pair>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack Map<int, DBVTNode>
The stack of the leafs in the tree as a map
getter/setter pair
tree DBVT
Dynamic bounding volume tree
getter/setter pair
types BroadPhaseType
getter/setter pairinherited

Methods

addPair(Shape s1, Shape s2) → void
Add overlaping pairs
inherited
addProxy(Proxy proxy) → void
Add the proxy into the broad-phase.
override
collectPairs() → void
Collect overlaping pairs
override
collide(DBVTNode node1, DBVTNode node2) → void
createProxy(Shape shape) DBVTProxy
Create a new proxy.
override
detectPairs() → void
inherited
isAvailablePair(Shape s1, Shape s2) bool
Returns whether the pair is available or not.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeProxy(Proxy proxy) → void
Remove the proxy from the broad-phase.
override
toString() String
A string representation of this object.
inherited

Operators

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