containsPoint method

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

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 body.fixtures.any((fixture) => fixture.testPoint(point));
}