Forcing Dice Side

I am working on a rolling dice mechanic.

Issue
After experimentation I realized that doing it on the server is too laggy especially since I want to roll multiple dice at the same time. Rolling them on the client makes it smooth but of course also vulnerable to exploits.

So a fix I could think of is generating random numbers on the server and then somehow forcing the dice to land on that number but I’m not sure on how I would be able to achieve this.

Possible Solutions
I have thought of predicting the trajectories and then predicting what it lands on and applying a force that would make it land on the right side but since I am also rolling multiple dice at the same time that collide with each other this is just too difficult for me.

One other solution I can think of is applying subtle forces that would eventually force the dice to end up on the side I want which could work and I haven’t tried it yet but it would probably look unnatural.

Conclusion
Currently I am not satisfied with the solutions I came up with so that is why I am here asking for help

1 Like