Jump to content

OculusController position


Meyer
 Share

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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...