containsPoint method

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

Checks whether the ShapeHitbox contains the point, where point is a position in the global coordinate system of your game.

Implementation

@override
bool containsPoint(Vector2 point) {
  return _possiblyContainsPoint(point) && super.containsPoint(point);
}