Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get camera world direction with webxr?

I would like to use camera.getWorldDirection() and access to the head-mounted display directions. I was able to do this with the previous webVR API. When I use the new HelioWebXRPolyfill.js from THREE, I am not able to receive current positions.

like image 568
Cagri Avatar asked Jan 01 '20 17:01

Cagri


1 Answers

According to the WebXR Device API, this should be done using the XRViewerPose object.

This feature is only working using HTTPS.

like image 124
Hans Beemsterboer Avatar answered Sep 19 '22 11:09

Hans Beemsterboer