Forum Discussion
BradleyNewman
11 years agoProtege
Way to disable orientation tracking? [0.4.3]
I'm using a motion capture system to track both the position and orientation of the DK2 and I'm wondering if there is a good way to disable orientation tracking with the 0.4.3 SDK? Would be nice to se...
BradleyNewman
11 years agoProtege
On a related note, I'm curious what the following code is for. If the tracker controls the position and orientation of the OVRCameraRig why does this code need to set the transforms of the eyes? If the eyes are children of the OVRCameraRig the eyes will be transformed along with the OVRCameraRig naturally in the scene object hierarchy, why the extra step here?
OVRCameraRig.cs
OVRCameraRig.cs
private void UpdateAnchors()
{
OVRPose leftEye = OVRManager.display.GetEyePose(OVREye.Left);
OVRPose rightEye = OVRManager.display.GetEyePose(OVREye.Right);
leftEyeAnchor.localRotation = leftEye.orientation;
centerEyeAnchor.localRotation = leftEye.orientation; // using left eye for now
rightEyeAnchor.localRotation = rightEye.orientation;
leftEyeAnchor.localPosition = leftEye.position;
centerEyeAnchor.localPosition = 0.5f * (leftEye.position + rightEye.position);
rightEyeAnchor.localPosition = rightEye.position;
}
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
- 11 months ago
- 4 years ago
- 2 years ago
- 2 months ago