Hy,
So here is my problem:
I have a Character (GameObject) thats needs to be moved to a give position and in the same time rotated to a given rotation.
Now I am using Vector3.Lerp and Quaternion.Slerp to accomplish this but my problem is that the pivot of the character is at his legs so when I rotate it is rotating around it’s pivot and not around the center of the Character. This looks quite odd.
I am trying to use transform.RotateAround to rotate it around another transform which will be positioned in the middle of the character.
My question : How can I calculate how much to RotateAround If I know the end rotation?
Thanks in Advance,
Boris
[Angle][1]? [1]:http://unity3d.com/support/documentation/ScriptReference/Vector3.Angle.html
– asafsitnerI don't really understand what you mean. I know the final rotation but I don't know how to get to it using RotateAround.
– Borissow