In my game, you should be able to look around 360 degrees. Now this seems to be a bit of a problem, because Unity won't let me change the camera's Upvector. I tried this for my player:
Aand then this for my camera:
But, when my player is standing on the ceiling or some other place where he's turned around, the camera completely freaks out. So I tried this for my player:
And this for my camera:
This is actually a lot better, but not perfect. I can now turn left and right, up and down correctly, even if my character and thus the camera is upside down. But when I'm watching upward and then try to look left or right, my camera acts as if it is falling over. Now I know this is happening because of the axis over which the camera rotates, but how can I fix it?
asked Nov 06 '10 at 01:50 PM
I though you would get an error on this one: "transform.eulerAngles += ", because transform.eulerAngles returns a copy euler angles, so it doesn't get set back. Can you try this:
Why do you need to do this:
I don't see how it changes your transform.
answered Nov 08 '10 at 11:05 PM