- Home /
Question by
wijesijp · Feb 07, 2013 at 10:15 AM ·
rotatearound
transform.RotateAround Help
I want to transform an object around a pivot point. I used transform.RotateAround and it is working correctly. The problem is I want to adjust this angle in update.
If I used RotateAround in Update it keeps spinning around.
How to I rotate the object around the pivot point by a specific angle?
void Start ()
{
transform.RotateAround(pendulumPivot.transform.position, Vector3.forward, -2.0f);
}
void Update ()
{
transform.RotateAround(pendulumPivot.transform.position, Vector3.forward, -2.0f);
}
Comment
Your answer
Follow this Question
Related Questions
Rotatearound Collider axis 1 Answer
is there any way to get a sane number on an objects current y rotation? 2 Answers
Rotate object around other object (or circle) using mouse 1 Answer
Rotate objects face to camera 1 Answer
How to rotate an object around a fixed point so it follows the mouse cursor? 1 Answer