Skip to main content
October 21, 2017

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


This topic has been closed for replies.

2 replies

October 28, 2017
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. 
November 18, 2017
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