Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: stereomike on November 05, 2014, 06:03:36 PM

Title: [SOLVED] Reset orientation on Oculus Rift 0.4.3
Post by: stereomike on November 05, 2014, 06:03:36 PM
Hey,
how can I reset the orientation of the OVR camera controller when a certain key is pressed?

I found this, but how would I implement that in playmaker?
Thanks a lot,
Mike


if (Input.GetKeyDown("left ctrl"))
{
OVRDevice.ResetOrientation(0);
}
Title: Re: Reset orientation on Oculus Rift 0.4.3
Post by: Lane on November 05, 2014, 06:57:09 PM
They changed the API (and depreciated that code..)

https://developer.oculusvr.com/forums/viewtopic.php?f=37&t=16185

Here's a super simple action but I didn't test it. Let me know if it works.
Title: Re: Reset orientation on Oculus Rift 0.4.3
Post by: stereomike on November 06, 2014, 02:08:08 AM
Awesome, works right out of the box!
Thanks Lane!
Title: Re: [SOLVED] Reset orientation on Oculus Rift 0.4.3
Post by: Dithernet on January 20, 2016, 09:38:26 AM
Here to choose the key for HMD reset on Unity3D 5.3 Oculus runtime 0.8  :)