Now that Unity 3.4 has support for the iPhone 4 gyroscope it makes a fantastic virtual camera controller.
Took a bit of work to sort out the various orientation issues, so I thought I'd save anyone else the trouble.
Example package attached. Enjoy!
[updated so that it works even if camera already has a parent ie character controller etc]
Took a bit of work to sort out the various orientation issues, so I thought I'd save anyone else the trouble.
Example package attached. Enjoy!
[updated so that it works even if camera already has a parent ie character controller etc]