Forum Discussion

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

Resetmotioninput()

Hi all - My understanding is that this executive function is supposed to set whichever way the HMD is now facing as forward. #1 - is that right?

#2 - I can't seem to get this function to do anything. Looking at the code from Playercontroller, this just calls Oculus.resethmdyaw(), which is a native function so I can't see what it is doing. When I call resetmotioninput(), I don't get any errors, and have verified that the function is actually getting called...but I don't see any impact on the orientation of the player's viewpoint. Any ideas?

Also, in what might be a related issue, I'm getting this warning in the log file:
[0001.96] Warning: Warning, Failed to load 'Class None.engine-ini:Engine.Engine.OculusClass': Can't find 'engine-ini:Engine.Engine.OculusClass' in configuration file section=Engine.Engine key=OculusClass ..\..\UDKGame\Config\UDKEngine.ini
[0001.96] Warning: Warning, Can't find 'engine-ini:Engine.Engine.OculusClass' in configuration file section=Engine.Engine key=OculusClass ..\..\UDKGame\Config\UDKEngine.ini


I didn't touch the Oculus part of the configs, but it is looking like maybe it isn't loading the Oculus class? Any idea why that might be?

Thanks for the help.

3 Replies

Replies have been turned off for this discussion
  • Not sure, but I have asked someone on the engineering team for details.
  • artyom17's avatar
    artyom17
    Expert Protege
    You are correct: it resets to forward direction. You can easily test this function on fresh installation of OUDK, in the main menu screen. Look somewhere (like, left or right) and type this function's name in the console: the menu should jump back in front of you.
    I am not sure why do you see those warnings, there should be none, and this might be a reason of the issues you are seeing.
  • medrift's avatar
    medrift
    Honored Guest
    I get the exact same warnings. Don't know why though. Using UDK 2013-09.