webVR issue: How do I make hand controllers stick to the CameraSet

I’m a currently developing a little WebVR Demo and I’m having troubles to get something seemingly simple to work. The hand models won’t stick to the WebVRCameraSet parent when I move it to a different position in my scene.

I fixed this by simply changing one line in the Update() method of WebVRController.cs

from
transform.position = InputTracking.GetLocalPosition(handNode);
to
transform.localPosition = InputTracking.GetLocalPosition(handNode);

However though, when I build my scene and load it in Firefox and start the VR-mode, the Hand-Positions still stay at the center of my scene.

Help would be very appreciated since I’m getting a little desperate about this and it is one of the last things I need to fix for publishing my demo.

PS: I tried this with multiple combinations of Unity and WebVR versions and always had the same result :frowning:

maybe @whoyee can help? :stuck_out_tongue:

After reaching out to the mozilla devs I got the answer:

WebVRController.cs

line 210 and 211 should be

transform.localRotation = rotation;
transform.localPosition = position;

also line 289 and 290:

transform.localPosition = InputTracking.GetLocalPosition(handNode);
transform.localRotation = InputTracking.GetLocalRotation(handNode);

Link: