- Home /
Smooth rotate around
Is there a simply way for a smooth rotate around?
I don't care if I need plugins I just want a simple smooth rotate around
I'm making a rubiks cube and want the user to know how it rotated
$$anonymous$$ay be options listed here can help you out: http://answers.unity3d.com/questions/22969/how-do-i-rotate-object-smoothly.html. Preferably the Update
function. You should easily find RotateAround
function as well.
Answer by aceX · Jul 06, 2015 at 05:42 AM
Heya,
the simplest way to get a smooth rotation I can come up with atm (sleep deprived and lazy)
is just using an animation, alternatively you can try using this:
http://docs.unity3d.com/ScriptReference/Transform.RotateAround.html
Edit: Brain forgot about Lerp
http://docs.unity3d.com/ScriptReference/Quaternion.Lerp.html
But please please please never use Time.deltaTime as argument for lerp function... No idea who came up with such wrong idea, but people keep passing it to the others
Lerping is probably the easiest way to do it and as Panga$$anonymous$$i pointed out, don't use Time.deltaTime, ins$$anonymous$$d, use Time.time, as pointed out in the docs.
Your answer
Follow this Question
Related Questions
Mecanim Root Motion Rotation - 180 degree turn. 2 Answers
Unity rotation bug??? or my mistake (with video) 1 Answer
Unity 5.2: Mecanim Transition Blending 1 Answer
Changing object rotation in animation automatically changes it's position 1 Answer
Animation transition incorrectly rotates player 360 degrees? 0 Answers