#i feel like i should but i dont
1 messages · Page 1 of 1 (latest)
yea
Quaternion.Euler() takes three params
so i dont need that bit then?
what are the three parameters that Quaternion.Euler takes?
i would presume X Y Z
you could know for sure by checking the docs, but yeah basically,
so what are you passing here?
what do you mean sorry its my first day learning so im not sure
no worries
Quaternion.Euler(newRotationX, 0f, 0f)
This function is making a rotation for you
you're passing three values
the first is newRotationX
the second and third are zero
is that function only changing the X axis then
yes, It's only setting one axis
right so if i wanted it to change the Y axis i would need to change it to
Quaternion.Euler(newRotationX, newRotationY, 0f) ?
and it's the x axis, which depending on your setup may also be a problem
so looking at it the transforms showed i was moving my y axis but it was not going up or down just left and right
the other folks were correct that this is also wrong:
transform.Rotate(Vector3.up * mouseY);
so what needs to change in the script then
Actually, it sort of works
You're getting no movement at all on the vertical axis?
nothing
Check your input settings
what you mean
Edit > Project Settings > Input Manager
I've dropped your code into my project and removed the above line, it's not really working but I do get vertical camera movement
I've removed line 39 and 43 and it kind works
So perhaps your axis are not set up correctly
so i checked and both vertical and horiztonal are set to x axis
not sure how that happened
even with that change it still does not work 🧐
This is your code with those two lines removed
i am at a complete loss
my settings seem right and i have removed the same lines yet nothing