Forum Discussion
Buckets
11 years agoProtege
How would I disable rotational tracking?
Anyone know how to disable rotational tracking, but leave the positional tracking on?
Would appreciate any help :)
Would appreciate any help :)
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionI don't know of any legitimate reason you would want to do this (so I strongly recommend you DO NOT actually release a demo doing this). However, if you really must for some odd reason, you can do it like this:
In OVRCameraRig.cs, at the top of the class around line 59 add:public bool disableOrientation = false;
Then on UpdateAnchors() around line 106 change it to check the bool:if (!disableOrientation) {
leftEyeAnchor.localRotation = leftEye.orientation;
centerEyeAnchor.localRotation = leftEye.orientation; // using left eye for now
rightEyeAnchor.localRotation = rightEye.orientation;
}
Then go into the inspector and on the OVRCamerRig check the "Disable Orientation" button. - BucketsProtegeI have my reasons ;)
Thanks for the help, works great.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago