CollisionArea class

Constructors

CollisionArea.circle({required double radius, Vector2? align})
CollisionArea.fromMap(Map<String, dynamic> map)
factory
CollisionArea.fromVector2Rect({required Vector2Rect rect, Vector2? align})
CollisionArea.polygon({required List<Vector2> points, Vector2? align})
CollisionArea.rectangle({required Size size, Vector2? align})

Properties

align → Vector2?
final
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
shape → Shape
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas c, Color color) → void
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited
updatePosition(Vector2Rect position) → void
verifyCollision(CollisionArea other) → bool
verifyCollisionSimulate(Vector2 position, CollisionArea other) → bool

Operators

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