Forum Discussion

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

OVRManager.display.velocity returns Vector3 = 0,0,0

I am developing a game in Unity using Oculus Utilities, and I want to retrieve the HMD velocity.
When I use the following line of code, the resulting Vector3 value is always zero:
hmdVelocity = OVRManager.display.velocity;
What is possibly happening?
My Oculus Rift CV1 works flawlessly in games and tracks correctly in Unity editor. 
I am using Unity v2017.1.1f1, Oculus Utilities v1.18.1, OVRPlugin v1.18.1, SDK v1.19.0.
Thank you for your help!
Leo


2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Thank you imperativity, even debugging with 4 decimals it still returns: (0.0000, 0.0000, 0.0000). I was moving the HMD as fast as I could and it tracks correctly.
    So the question still stands. Very odd behavior. 
  • Anonymous's avatar
    Anonymous
    Even updating the OVRPlugin to v1.20.0 I still cant access HMD velocity. Could it be that some sensor in my hardware is broken? Thanks.

    Specs:
    Unity v2017.2.0f3, Oculus Utilities v1.20.0, OVRPlugin v1.20.0, SDK v1.20.0