CollisionConfig class
Constructors
-
CollisionConfig({required Iterable<
CollisionArea> collisions, bool enable = true})
Properties
- collisionOnlyVisibleScreen ↔ bool
-
getter/setter pair
-
collisions
→ Iterable<
CollisionArea> -
Representing the collision area
final
- enable ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- rect → Rect
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vector2rect ↔ Vector2Rect
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePosition(
Vector2Rect position) → void -
verifyCollision(
CollisionConfig? other, {Vector2? displacement}) → bool
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited