aframe icon indicating copy to clipboard operation
aframe copied to clipboard

Update controller property for Oculus Quest

Open binzume opened this issue 5 years ago • 4 comments

Description:

The ray direction of oculus quest controller in the WebXR session is wrong. So adjusted direction and position. The direction within WebVR API may will be broken, but the latest Oculus Browser no longer supports the WebVR.

Changes proposed:

binzume avatar May 02 '20 03:05 binzume

what do you mean by wrong?

dmarcos avatar May 02 '20 18:05 dmarcos

It seems that the controller's ray direction adjusted for earlier version of the OculusBrowser. (It actually worked correctly). However, there is now a difference from the direction of the ray on the home screen. When using WebXR device API, the ray direction is provided by XRInputSource, so the ray direction(and origin) should not be adjusted.

ray in Home: com oculus vrshell-20200503-054620

A-Frame 1.0.4: com oculus browser-20200503-054938

binzume avatar May 02 '20 21:05 binzume

We should probably use XRInputSource.targetRaySpace for WebXR instead of hardcoded values

dmarcos avatar May 04 '20 07:05 dmarcos

As mentioned, we should be using XRInputSource.targetRaySpace instead of hardcoded values. I'll leave it open as a reference

dmarcos avatar Nov 20 '24 01:11 dmarcos