BroadPhase class

The broad-phase is used for collecting all possible pairs for collision.

Implementers

Constructors

BroadPhase()

Properties

hashCode → int
The hash code for this object.
no setterinherited
numPairChecks ↔ int
getter/setter pair
numPairs ↔ int
getter/setter pair
pairs ↔ List<Pair>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
types ↔ BroadPhaseType
getter/setter pair

Methods

addPair(Shape s1, Shape s2) → void
Add overlaping pairs
addProxy(Proxy proxy) → void
Add the proxy into the broad-phase.
collectPairs() → void
Collect overlaping pairs
createProxy(Shape shape) → Proxy?
Create a new proxy.
detectPairs() → void
isAvailablePair(Shape s1, Shape s2) → bool
Returns whether the pair is available or not.
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.
toString() → String
A string representation of this object.
inherited

Operators

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