containsPoint method
Checks whether the hitbox represented by the list of HitboxShape
contains the point
.
Implementation
@override
bool containsPoint(Vector2 point) {
return possiblyContainsPoint(point) &&
_hitboxes.any((shape) => shape.containsPoint(point));
}