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 ;)
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 ;)
Hi,
I provided an answer to a similar problem (link below). I hope it can be of some use.
to access a game objects y rotation you do this:
transform.rotation.y = "what you want the y rotation to be"