Hi
I am getting strange behaviour with the gamble code. The side to side mouse works fine but up/down just raise and lowers the right hand side of the horizon giving a slew view. I have checked the code and it is the same as the lecture, restated everything, and checked the the script is attached only to the parent
here is the code
// Update is called once per frame
void Update () {
float rotationSpeed = 5.0f;
float mouseX = Input.GetAxis (“Mouse X”) * rotationSpeed ;
float mouseY = Input.GetAxis (“Mouse Y”) * rotationSpeed ;
// can use getcomponent for this but there is a
// transform object pointer created by default
transform.localRotation = Quaternion.Euler(0,mouseX,0) * transform.localRotation;
Camera camera = GetComponentInChildren<Camera>();
camera.transform.localRotation = Quaternion.Euler(-mouseY,0,0) * camera.transform.localRotation;
}