BruteForceBroadPhase class

A broad-phase algorithm with brute-force search. This always checks for all possible pairs.

Inheritance

Constructors

BruteForceBroadPhase.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
numPairChecks int
getter/setter pairinherited
numPairs int
getter/setter pairinherited
pairs List<Pair>
getter/setter pairinherited
proxies List<Proxy>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
createProxy(Shape shape) Proxy
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