intersections method

  1. @override
Set<Vector2> intersections(
  1. ShapeHitbox hitboxA,
  2. ShapeHitbox hitboxB
)
override

Check what the intersection points of two collidables are, returns an empty list if there are no intersections.

Implementation

@override
Set<Vector2> intersections(
  ShapeHitbox hitboxA,
  ShapeHitbox hitboxB,
) {
  return hitboxA.intersections(hitboxB);
}