How can i properly make projectile hitboxes?

I didnt really find a answer to this question but i found some helpful topics like:

This works for linear projectiles with a predictable path but not really what im looking for