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);  


Comments

Post a Comment

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -