im trying to make the best hitboxes i can, and i would like to know what are the best option when spawning the hitbox, on the server, or on the client and what are the benefits and the cons of using one over another?
I would personally use client hitboxes because it favors user experience (UX). Correct me if Iβm wrong, but Iβm pretty sure that the standard client-sided hitbox implementation is like:
The implementation above is usually used for raycasting, however, if youβre looking into something like query hitboxes (like the box hitboxes in Forsaken), you can do this instead:
And if youβre looking into server-sided hitboxes, you can definitely look into velocity / ping prediction:
Do your research on velocity / ping prediction though, it can get really messy and it might not even be recommendable tbh. It really is up to your discretion!