- Home /
Question by
juliancruz87 · Aug 02, 2011 at 03:47 PM ·
gameobjectrotate
How to prevent that my gameObject child, does rotate with my GameObject Parent
I need put gameObject child into a gameObject parent, but, my GameObject child doesn't put rotate, I need that gameObject parent rotate, but just the gameobject parent, but the gameObject child is inside, the gameObject too rotate
Comment
Best Answer
Answer by AaronC · Aug 02, 2011 at 03:50 PM
put on child
function Update(){ transform.rotation.y = - transform.parent.transform.rotation.y;
//or //transform.eulerAngles.y = - transform.parent.transform.eulerAngles.y; }
Your answer
Follow this Question
Related Questions
rotate to swip direction 0 Answers
Rotation is jumpy 2 Answers
C# Rotate GameObject at Other Point other than Center 3 Answers
RaycastAll isn't finding all possible collisions 1 Answer
How get the rotation of an GameObject? 3 Answers