CollisionChecker class

This class is used to check collisions between Entity's and the Dozer

Constructors

CollisionChecker()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

circles(Entity a, Entity b) → bool
Checks if two entities with circle shape overlap or touch by checking the boundaries of both entities
recCir(Entity rectangle, Entity circle) → bool
Checks if two entities with circle and rectangle shape overlap or touch by checking the boundaries of both entities
rectangles(Entity a, Entity b) → bool
Checks if two entities with rectangle shape overlap or touch by checking the boundaries of both entities