Forum Discussion
yrcloud
12 years agoHonored Guest
How to disable rotation tracking in sdk 4.3 in Unity?
Hi, I'm trying to disable the whole rotation tracking (not only camera based positional tracking) but don't know how in sdk 4.3. According to the "UnityIntegrationGuide", there should be two public bool values in the script "OVRManager" on the OVRCameraRig prefab, one called "use position tracking" the other called "use rotation tracking". But I can only find the "use position tracking" in the 4.3 sdk. Really need help here.
5 Replies
Replies have been turned off for this discussion
- moltonExplorerI think you want to comment this out of the OVRPlayerController script
DirXform.rotation = Quaternion.Euler(0.0f, YRotation, 0.0f);
transform.rotation = DirXform.rotation;
if (HmdRotatesY)
{
float hmdY = CameraController.centerEyeAnchor.localRotation.eulerAngles.y;
DirXform.rotation *= Quaternion.Euler(0.0f, hmdY, 0.0f);
} - vrdavebOculus StaffYou can totally disable head tracking by commenting out "UpdateAnchors()" in OVRCameraRig.LateUpdate().
- framidevHonored GuestAm I the only one who still gets some kind of camera movement when shacking the rift, after commenting the UpdateAnchors() line ?
- drashHeroic Explorer
"framidev" wrote:
Am I the only one who still gets some kind of camera movement when shacking the rift, after commenting the UpdateAnchors() line ?
This is because timewarp is doing its job reprojecting the scene to reduce latency -- you can try freezing timewarp / turning off timewarp (on the OVRManager) and see if that helps. - framidevHonored Guest
This is because timewarp is doing its job reprojecting the scene to reduce latency -- you can try freezing timewarp / turning off timewarp (on the OVRManager) and see if that helps.
Yeees ! Exactly what I needed ! Thanks !
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