Forum Discussion

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

Meta Quest 2 Controllers Acceleration

Hello,

 

I'm trying to access linear and angular acceleration of Meta Quest 2 controllers.
 
Here's the code I'm using:

 

OVRInput.GetLocalControllerAcceleration(OVRInput.Controller.RTouch);

 

 

It always returns vector with all components set to 0 for both controllers.

The velocity/position works well.

I'm using Oculus Integration package v47.0 and Unity 2021.3.17f1.

3 Replies

  • Exactly the same for me. I have tried with link and in build. Same result. All the time acceleration = (0, 0, 0). Position and velocity are okay. I have also tried to get the headset acceleration with OVRManager.display.acceleration. Same result.

    Maybe we have something misconfigured ?

    My project configuration :

    Unity v2022.2.5f1, Oculus Utilities v1.81.0, OVRPlugin v1.81.0, SDK v1.0.25.

  • Hi,

    This is not a new issue. I get correctly all oculus features in Unity 2020 projects, but since 2021, all returned accelerations are (0,0,0). I'm currently preparing a bug report, since my project needs all device accelerations (linear, angular).

    My only solution for you at the present time is "Get back to Unity 2020".