Broadphase<T extends Hitbox<T>> class abstract

The Broadphase class is used to make collision detection more efficient by doing a rough estimation of which hitboxes that can collide before their actual intersections are calculated.

Currently there is only one implementation of Broadphase and that is Sweep.

Implementers

Constructors

Broadphase.new({List<T>? items})

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query() Set<CollisionProspect<T>>
toString() String
A string representation of this object.
inherited

Operators

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