I want to create a Dice blueprint , but I don't know how to start

Hi,
I am new in using UE4, and I want to try doing dice from a 3D model , It is just a cube and has a number for each face (from 1 to 6) , which is better, get the number from the 3D model when it dropped and rotated, or get it using the the random integer blueprint ?
and in both cases could you please help in showing how to create this blueprint ?

thanks,

I’d use actual physics to drive it. You can randomize the dices rotation at the moment of throw, and maybe apply a random linear impulse within a certain range, for the dices to move even more random.

Once they have stopped, you can check if Up/Forward/Right vector corresponds to the World Z vector and that’s how you get the number.

You’ll have to experiment with physics materials for the dices and the table, apply different friction values to see what works the best.

Can’t show any BPs at the moment.

You could use physics for a quick and dirty solution but it will be error prone. Most gambling type systems would not use physics.

If this needs to be driven by something more reliable than physics then just have some dice rolling animations.

You know what face will be on top for any given animation so you just need to make sure that face has the right numbers.

You could do this by shifting the UVs in the material, having 6 different textures for a single set of UVs, or by having pre-figured rotation offsets applied on top of the animation.