unity3d - Unity - limit/clamp rotateAround() -
I have a unity setup and issue that can be described as follows:
- < P> There is a pivot in the center of a circle and the object I am trying to move is with the circumference of the circle (using RotateAround ())
- < P> I need to turn this rotation around the 45 degree both methods (or total 90 degrees) around the axis object
I have more than a month I am trying not new to this, no success, please help: & lt;
Edit:
This is the code that I am currently using and it works. The object rotates in a circle correctly, but I want to have a border / clamp on this rotation.
GameObject.Find ("rotate_me_around_pivot_object"). Transform.RotateAround (GameObject.Find ("Pivot object"). Transform.position, Vector3.forward, 5 * Time.deltaTime);
This is what i'm trying to do ;-;
ReplyDelete