Forum Discussion

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

sdk 0.8 U4.x Dissable head tracking and get tracking values

Hi all.

I need to dissable the headtracking when the player makes zoom because it feels really dizzy. When zoomed what I whant to do is to get the head tracking rotation values and rotate the vehicle turret instead of the player camera rig.

How can I acces the tracker? I've surfed across the ovr library and found nothing that works.

Thanks!

3 Replies

Replies have been turned off for this discussion
  • Is the turret the object they are "zooming" with? Sorry a bit hard to visualize. But maybe you can just reparent GameObjects to the OVRCameraRig or something to achieve what you want? Or (might work) every update, force the head position and rotation back to where it was when the zoom started and reparent the turret to the head position. Not exactly sure.
  • You can use the OVRCameraRig.UpdatedAnchors to customize the effect of head tracking or cancel it out in the TrackingSpace GameObject. For example, in OVRPlayerController.cs, we use UpdatedAnchors to bake the yaw from head tracking into the player's body yaw and zero out the local yaw of the eye anchors. You can see an example of this in action in Room.unity, which also comes with the Oculus Utilities.
  • vrdaveb! that is exactly what I neede thank you!

    Stankien>> the answer from vrdaveb exactly solves my need, but thanks!