Forum Discussion

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

Overriding positional and orientational tracking outside the game

Hi,

I am a newbie in VR development. I am wondering if there is any way to override the positional and orientational tracking information outside the game? Let's say I wanna disable the positional tracking of a game someone else developed, is that doable?

If it is not doable, are there any open source VR games that I can start tweaking and experiment with the different things?

Thanks
MC

1 Reply

  • Anonymous's avatar
    Anonymous
    @imperativity Thanks for the suggestions. 

    I was experimenting with the OVRController and the OVRCameraRig under it. I set centerEyeAnchor.localPosition to be (0, 0, 0) trying to disable positional tracking. The reason I am not doing it directly by unclicking 'Use position tracking' is that I might wanna set position to other values rather than totally disabling it.

    However, setting centerEyeAnchor.localPosition to be (0, 0, 0) doesn't seem to change anything and whenever I move my head, the inspector of the center eye still keeps track of position and shows non-zero values under Transform -> Local Position.

    I then tried to set CameraRig.transform.localPosition to cancel the change in centerEyeAnchor.localPosition and then the entire scene seems to be shifting in a weird way. 

    Any ideas why this is happening?