- Home /
Question by
jagguy · Jun 12, 2012 at 07:20 AM ·
camera-look
camera to turn
I want to get the camera to move around Y axis as it doesnt turn left/right
This is javascript but I cant convert it to c#?
The Mouse Script is called just MouseLook in my version
transform.rotation=Quaternion.Euler(mycamera.GetComponent(MouseLookScript).currentYrotation,0);
It is from http://www.youtube.com/watch?v=5pkeRlpjFzQ&feature=plcp
Comment
Answer by whydoidoit · Jun 12, 2012 at 08:08 AM
In c# the translation would be:
transform.rotation=Quaternion.Euler(0, mycamera.GetComponent<MouseLookScript>().currentYrotation,0);