Should i spawn hitboxes locally or on the server?

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?

1 Like

Here’s a good comment (and thread) for this:

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!

1 Like