webVR challenges with raycasting accuracy and dragging groups

Hello : )

I am quite stuck on some web-vr interactions :frowning:

My first issue is the raycaster is very inaccurate in web-vr. Intersections are true even when you are not close to the 3D model or arrows. Try the hover effects on the arrows are you can see itโ€™s wayyyyyy off.

Secondly, after you drag the 3D hotdoggroup, somehow, the hotdog, hotdogskeleton, and hotdogbox all drag differently and become out of sync? They are all children of hothodgroup:

Demo is here: http://fuzzywobble.com/projects/webvr-hotdog-interact/

Tested on Windows10 w/ Oculus Rift.

Thanks!

1 Like

bumpity bumpity bump

1 Like

Sorry the demo URL vanished : U

Here it is back, https://fuzzywobble.com/projects/webvr-hotdog-interact/

Iโ€™m not sure, if i can help you, but some things in my mind are:

  1. Raycaster is inaccurate:
    When clicking, you have to set mouse coordinates somewhere to use raycaster. Can u show the mouse.set code? Maybe its inaccurate, because theres an issue
  2. How do you drag these objects? Do you update your matrices and how? Like this you can update matrices obj.updateMatrixWorld(true);

Hopefully my post is not unnecessary, good luck