Hi, I’m making a pickaxe tool. When players are in the process of mining, I want to animate an object shake.
Should I do the shake effect on the server or should I initially do the shake on the client performing the action, then process the hit on the server and then tell all other clients to animate the shake (for client responsiveness), or does it not really matter if it’s purely for cosmetics?
It would probably be fine to do it on the client. It’s such a minor effect anyway. You could do the check on all pickaxes and not just yours though and it would be more realistic for everyone.
Animate it on the client so that the player gets a reaction from the game when you click. Otherwise, the delay will feel bad to play with. The pickaxe takes a few hundred milliseconds to actually reach the block, so you can use that to negate latency by telling the server eariler than you hit the block.