Forum Discussion

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

Setter for VR.InputTracking

Hello,

I would like to use an other position tracking system for the Oculus, however with the new Oculus Utilities for Unity 5, we can not overwrite the tracking data anymore like we were use to do in the past in the OVRCameraRig.

So my question is do you have a work around or an ETA for setter on the unity side (VR.InputTracking.SetLocalPosition)?

I can disable the tracker and move the parent of the Oculus but my left and right anchor don't get the proper values so I can feel a drift.

If I can not do it anymore on unity, could I do it in unreal?

Thanks,
Pete

1 Reply

Replies have been turned off for this discussion
  • owenwp's avatar
    owenwp
    Expert Protege
    The simplest approach is to move the transform that the camera is parented to. Just compute the difference between the current and desired center eye position and add it to the transform. Ditto for orientation with a bit of quaternion math.