- Home /
Question by
konrado701 · Mar 11, 2018 at 10:00 PM ·
rotationquaternionlerpcontrols
How to smoothly roate a cube by 90 degrees.
I am trying to use this but it is not working.
transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(0,0,90),0.01f);
Comment
Answer by hosseinmatrix · Mar 11, 2018 at 11:04 PM
You must use lerp in MonoBehaviour Update to make it works.
Answer by konrado701 · Mar 13, 2018 at 11:39 PM
Thank you. The main problem i had was that i was calling this in if(bool) and it was runing in realy short amount of time.
Your answer

Follow this Question
Related Questions
How to ROTATE an object without slowing the ends (lerp) 3 Answers
Lerp 180 degrees while holding B and lerp back 180 degrees when let go of B. 2 Answers
Clamped Turret Doesn't Want to Lerp the Other Way 2 Answers
Rotate children (Cards) on a panel (maybe using lerp, or another method?) 1 Answer
How would I smooth out a Quaternion? 2 Answers