Forum Discussion

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

Incorrect version of Oculus Runtime being reported meaning GetLocalControllerAngularVelocity is zero

I'm trying to use the `GetLocalControllerAngularVelocity` method on Oculus Utilities 1.12

But it's always reporting zero.

Further investigation shows that on line 788 of OVRPlugin it is checking to see if the runtime version is at least the same as 1.12

if (version >= OVRP_1_12_0.version)
return OVRP_1_12_0.ovrp_GetNodePoseState(stepId, nodeId).AngularVelocity;

This never gets called as outputting version shows it as `1.10.0` even though my Oculus Home shows the version as 1.12.0

Is this because Unity is defaulting to the built in version of Oculus Runtime which is still on an older version and therefore it's not working?

From looking at it Unity 5.4.4 is using the Oculus 1.10.0 runtime and Unity 5.5.2 is using the Oculus 1.11.0 Runtime

If this is the case then I can only assume `GetLocalControllerAngularVelocity` is never going to work in Unity 5.4 or 5.5.

Is this correct?

3 Replies

Replies have been turned off for this discussion