Jump to content

Rotation Values of DeviceOrientationCamera


KramSurfer
 Share

Recommended Posts

I have a web application that has a 'gaze selector' which is working fine, but I want to have the menus change context when the user is looking at higher X rotation value.

When testing on the desktop the standard FreeCamera has rotation values which I can easily check.  Then attaching a DeviceOrientiation camera, those rotation values are no longer updated. 

How can I get the simple rotation values of the DeviceOrientationCamera  or VRDeviceOrientationCamera?

Pulling my hair out here!
Thanks.

Keith R Morrison

 

Edit:
It appears  scene.activeCamera.getWorldMatrix();  is changing value while moving the device. 
Is there a function to convert this to a x,y,z rotation?

Link to comment
Share on other sites

Thank you. Thank you. Thank you!

From the Forums I see you're a big part of BabylonJS. 

I want to also say THANKS for you efforts in this.  I'm new to the engine ( coming from Flash & Flare3D, run in installable AIR applications ) and this engine is very well thought out. 

I'm excited to create applications using this tech.

Keith R Morrison


 

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...