Meyer

OculusController position

Recommended Posts

Hi all,

 

I try to use oculus controllers without having a VR Camera.

I succeed to have the rotation but the position stay 0,0,0.

The position seems to be only available when VRMode is enabled.

 

My code

this.padLeft.deviceRotationQuaternion; // Valid


console.log(this.padLeft.devicePosition); // always 0,0,0
console.log(this.padLeft.position); // always 0,0,0

 

any idea ?

Thanks in advance

Meyer

Share this post


Link to post
Share on other sites

Hi again,

I investigated and finally babylon's code is ok ! The positions are updated. My problem was stupid : when you don't put the oculus on your head, the headset enter in a kind of sleep mode.

In this "sleep mode" , the positions of the pads are not updated ( only their rotation ) if you wake up the headset ( by touching/moving it only), the pad positions are back !

Sorry for the inconvenience.

 

Meyer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.