testPoint method

bool testPoint(
  1. Vector2 point
)

Test a point for containment in this fixture. This only works for convex shapes.

point should be in world coordinates.

Implementation

bool testPoint(Vector2 point) {
  return shape.testPoint(body.transform, point);
}