Realigning view after drift
Hello,
I'd like to implement a button to realign the camera to compensate for drift just like there is in most good demos (B key in Titans of Space, for example).
Being a newb with Unity I am wondering on how to tackle this. I know about the input side (pressing a button and such), but I am not sure where to look for the actual reseting of the camera. There must be a vector to reset to Forward or something like this somewhere.
I have looked into the OVR scripts but I cant really figure out whats going on.
Any hints (example, or function to call) would be much appreciated :geek:
I'd like to implement a button to realign the camera to compensate for drift just like there is in most good demos (B key in Titans of Space, for example).
Being a newb with Unity I am wondering on how to tackle this. I know about the input side (pressing a button and such), but I am not sure where to look for the actual reseting of the camera. There must be a vector to reset to Forward or something like this somewhere.
I have looked into the OVR scripts but I cant really figure out whats going on.
Any hints (example, or function to call) would be much appreciated :geek:
