containsPoint method

  1. @override
bool containsPoint(
  1. Vector2 point
)
override

Same as containsLocalPoint, but for a "global" point.

This will be deprecated in the future, due to the notion of "global" point not being well-defined.

Implementation

@override
bool containsPoint(Vector2 point) {
  return hitboxes.any((hitbox) => hitbox.containsPoint(point));
}