Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Buckets's avatar
Buckets
Protege
11 years ago

How would I disable rotational tracking?

Anyone know how to disable rotational tracking, but leave the positional tracking on?
Would appreciate any help :)

2 Replies

Replies have been turned off for this discussion
  • I 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.