just as the title says. I figured out how to get an object to rotate on Z but when I try to alter the code to rotate on X I keep getting the error cs(20,67): error CS1026: Unexpected symbol ,', expecting
)'. I can’t stare at it any more please help - tell we why the first line works and the second line does not
//this code rotates an object on its Z axis with mouse movement
if(Input.GetAxis("Mouse X")<0 || (Input.GetAxis("Mouse X")>0))
{
transform.Rotate(0, 0, -(Input.GetAxis("Mouse X")) * Time.deltaTime * speed );
//and this code should rotate an object on X axis. or so I thought
if(Input.GetAxis("Mouse X")<0 || (Input.GetAxis("Mouse X")>0))
{
transform.Rotate((Input.GetAxis("Mouse X"),0,0)* Time.deltaTime * speed ));
}