Skip to content

Add a getter for "session" in WebXR #14532

@soadzoor

Description

@soadzoor
Description of the problem

It would be very helpful if I could get the session, and the XRInputDevice, specially the "handedness", and "pointerOrigin" properties. The only way I find to do this now, is by changing my three.js file, which obviously not a nice solution.

I think the best way would be something like this:
var session = renderer.vr.getSession();, then
var inputDevice = session.getInputSources();

Or is there already a way to get this, and I couldn't find it..?

Three.js version
  • Dev
  • r94
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions