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
getter/setter pair
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
toString() String
A string representation of this object.
inherited
updatePosition(Vector2 position) → void
verifyCollision(CollisionConfig? other, {Vector2? displacement}) bool

Operators

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