I’m still learning, but I think that maybe the solution to this is to look at the orientation of the device and then rotate the camera if the user is looking at the game upside down.
Heya - here is my code that does this… What it does is, if the user turns the iphone from horizontal (with the home button on the right) to vertical or from vertical to horizontal, it will flip the orientation of the display as the camera axis you are interested in approaches alignment with gravity. This is done by testing the dot product of the axis you are interested in against gravity. I do it as a flip instead of a continuous movement though…
…or something like that, haven’t tried that yet, but that should make your camera continuously look at a position that is 1 gravity vector away from it’s current position…
Wonderfull !!!
The first one works fine like you describe…
It’ would work for me least but i like also the continuos rotation but with that i get a error: LookAt is not a member of UnityEngine.Camera