- Home /
Scene view rotation
Hello everyone!
I am pretty confused how the rotation in the scene view works. I have a model and i guess it has the pivot point at bad place. But i have a lot of them so i cant really change them.
So if i rotate the models in the scene view it correctly rotates it because it changes the position as well. And if i rotate them through a script modifying the eulerangles or using Transform.Rotate i get bad result because it is visually changes the position even if the transform values are the same.
I would need to rotate them as in the scene view. How can i achieve that kind of functionality through scripting?
Thanks forward everyone who helps with anything!
I assume the difference is because you may actually rotate different things. When you select something in the scene view, check what you really selected in the tree, and check that you rotate the same game object by script.
Thanks, but this is not the problem. Of course i already checked it. The trick is the Unity scene view changes the transform's position as well when i rotate the object to compensate the pivot point displacement. But i dont know how do they know how to set the positions.
Answer by jvhgamer · Jul 14, 2017 at 09:01 PM
Wow I have the exact same question nearly three years later! Anyone got an update on this?
Your answer
Follow this Question
Related Questions
Flip over an object (smooth transition) 3 Answers
Simple Rotation 1 Answer
i have rotated an gameobject but the axis of the object did not change 2 Answers
make projectiles always hit target 1 Answer