Forum Discussion

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

Teleportation location issue

I updated the oculus SDK for my Unity project and now the teleportation mechanics seem to be different. It used to teleport the player directly onto where the teleport destination was regardless of where in the playspace they were. Now it teleports the PlayerController onto the teleport destination but that doesn't mean the HMD is located there. Example: The player takes two steps backward in the playspace then attempts to teleport up to a shelf. They end up two steps away from the shelf and unable to reach anything without walking forward two steps. How do I fix this?

I've been attempting to use OVRManager.instance.RecenterHeadset() which puts the player in the correct destination but I then have rotation issues. I stored the desired rotation and then set it when the RecenteredPose action happens but that gives me a split second of being facing the wrong way before it gets corrected. This is driving me nuts.

Warmest regards,
Chris

Unity 2019.3.0f3 and latest oculus sdk 20.1 from asset store