F
F
fullj02016-01-22 21:25:13
css
fullj0, 2016-01-22 21:25:13

Determine rolled value on CSS 3D dice?

Here - codepen.io/anon/pen/YweWXj I implemented a random value drop on a 3D CSS cube by setting it to a random (multiple of 90) value for rotateX, rotateY and rotateZ (mouse over the cube for this to happen). Tell me how to determine which side the cube fell out? I understand that you need to use the RPM values ​​for each axis, but I can’t come up with the algorithm itself. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Strukov, 2016-01-22
@pm_wanderer

My cube only spins once and doesn't want to anymore (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question