playMaker

Author Topic: [SOLVED] Reset orientation on Oculus Rift 0.4.3  (Read 4404 times)

stereomike

  • Playmaker Newbie
  • *
  • Posts: 2
[SOLVED] Reset orientation on Oculus Rift 0.4.3
« 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);
}
« Last Edit: November 06, 2014, 02:08:35 AM by stereomike »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Reset orientation on Oculus Rift 0.4.3
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

stereomike

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Reset orientation on Oculus Rift 0.4.3
« Reply #2 on: November 06, 2014, 02:08:08 AM »
Awesome, works right out of the box!
Thanks Lane!

Dithernet

  • Playmaker Newbie
  • *
  • Posts: 4
Re: [SOLVED] Reset orientation on Oculus Rift 0.4.3
« Reply #3 on: January 20, 2016, 09:38:26 AM »
Here to choose the key for HMD reset on Unity3D 5.3 Oculus runtime 0.8  :)