Unity Dice Rolling Game

Unity Developer
Unity
Blender

With this project you can choose up to 8 dice to roll from a 4 sided die to a 10 sided die. You can mix and match the rolling die, so you can have 1 of each, all the same or any combination.

The randomness of the rolls is controlled by the 3D physics engine. When you add a die, a random rotation is added to the prefab as it is placed in its holding position. When you roll the dice a force is added to make it land inside the tray, with a random amount of spin added on all axis.

Cocked die don't count. If a die that is rolled is mostly flat on one of its faces you will have to reroll the die. The same happens if a die lands on top of another die - you will reroll the die on top.

You can choose to show just the total number rolled, or also view the highest roll and the lowest roll. This project uses the Cinemachine cameras for Unity, seamlessly transitioning when the Dice are rolled, and focusing on the result when all the Dice have settled.

GitHub RepoBack
DiceRoller_1_small-2025-01-17T20-43-24-836Z.webp
DiceRoller_2_small-2025-01-17T20-43-20-677Z.webp
DiceRoller_3_small-2025-01-17T20-43-17-699Z.webp
DiceRoller_4_small-2025-01-17T20-43-13-842Z.webp