Forum Discussion

youder's avatar
youder
Honored Guest
2 years ago

Give me the code to get the acceleration information for Quest 2 HMD.

Can't get acceleration information for Quest 2 HMD ?

OVRDisplay.acceleration always returns (0, 0, 0). But, OVRDisplay.velecity returns correct values. 

IMU for Quest 2 HMD should be measuring acceleration.
Velocity is obtained by integrating it ...

Give me the code to get the acceleration information for Quest 2 HMD.

I’m using Unity 2022.3.13f1 , Oculus Integration 57.0.1.

_____________________________________________________________

OVRDisplay ovrDisplay;

Vector3 acc = ovrDisplay.acceleration; // return (0,0,0)

Vector3 velocity = ovrDisplay.velocity; // return correct values

_____________________________________________________________

No RepliesBe the first to reply