intersections method

  1. @override
Set<Vector2> intersections(
  1. Hitbox<Hitbox> other
)
override

Where this ShapeComponent has intersection points with another shape

Implementation

@override
Set<Vector2> intersections(Hitbox other) {
  assert(
    other is ShapeComponent,
    'The intersection can only be performed between shapes',
  );
  return intersection_system.intersections(this, other as ShapeComponent);
}