CollisionDetection class final

A sweep-and-prune collision arena, run once per tick.

Registered colliders are broadphased with a sort-and-sweep over their AABBs to produce candidate pairs, which are then narrowphased against their actual shapes to power the node signals.

Constructors

CollisionDetection({IntersectionSystem? system})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system IntersectionSystem
Used for narrowphase intersection tests.
final

Methods

add(ColliderNode collider) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process() → void
remove(ColliderNode collider) → void
toString() String
A string representation of this object.
inherited

Operators

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