- Home /
Rotating a Gameobject on MY left?
hello, i have a model of a tree in my scene and i'm trying to simulate its hacking up.
(to chop the tree) (i hope you understand my horrible english!) :)
I use
transform.Rotate(Vector3(0.0, 30.0,0.0))
transform.position.y = 0;
to rotate the tree and it works well but... i noticed that the tree rotate always on HIS left.. so...if i face the tree frontally ...the tree will rotate frontally.. :)
i would like to rotate it on MY left according on my point of view!
is this possible?
Answer by Klompengard · Apr 23, 2014 at 03:39 AM
You could always make the camera a child of an object placed at the center of the tree, and rotate that instead.
uhm..since theese object will be instantiated to create multiple instances of the tree (>1000) are you sure this is the best option to choose?
Your answer
Follow this Question
Related Questions
rotate to swip direction 0 Answers
C# Rotate GameObject at Other Point other than Center 3 Answers
Rotate around a locally tilted axis?, 1 Answer
Control the Animation 1 Answer