- Home /
Question by
KukiKrunch · Jan 24, 2012 at 08:43 PM ·
camerarotatey-axis
Y axis rotation help!!
Ok, I have a game Camera with the "Camera look" Controls. and i have a cube...well i want the cube's Y axis to rotate according to the cameralook's Y axis rotation, and ONLY the Y.
thanks, Gabriel ;)
Comment
Answer by Posly · Jan 24, 2012 at 08:52 PM
to access a game objects y rotation you do this:
transform.rotation.y = "what you want the y rotation to be"
That's incorrect, transform.rotation is quaternion and rotation.y is not the y axis.
Answer by Revolver2k · May 09, 2012 at 10:57 PM
Hi,
I provided an answer to a similar problem (link below). I hope it can be of some use.
Your answer

Follow this Question
Related Questions
RTS type of camera 1 Answer
Sidescroller Turning 1 Answer
How to rotate the camera on a button press. 2 Answers
Based on touch rotate camera object 0 Answers
Set camera angle in a script using the same system as the properties page?? 0 Answers