Detect rotation stop

Hi guys

need help

i have some dice that Iam moving when i shake the iPhone/iPod the dice come to a stop after sometime.

I want to detect when the dice stop to rotate translate

how can i do that

thank you

You could always save the last translation and if it == current translation, they’ve stopped. Or you could get a little more convoluted and control when they stop (which I’m guessing is not what you want to do).

If they are controlled by physics, you can check to see if the rigidbody is sleeping using the IsSleeping method.

Hey guys

thank you for the help will check these options n let u know

:slight_smile: