CollisionArea class

Constructors

CollisionArea(Shape shape, {Vector2? align})
CollisionArea.circle({required double radius, Vector2? align})
CollisionArea.fromMap(Map<String, dynamic> map)
factory
CollisionArea.polygon({required List<Vector2> points, Vector2? align})
CollisionArea.rectangle({required Vector2 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, {Paint? overridePaint}) → void
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
updatePosition(Vector2 position) → void
verifyCollision(CollisionArea other) bool
verifyCollisionSimulate(Vector2 position, CollisionArea other) bool

Operators

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