Search code examples
javascriptthree.jsaframewebvrhtc-vive

Position of controller not updated after camera moving with teleport-controls in A-Frame


I use teleport-controls in A-Frame.

After moving of the camera with teleport-controls is the model of Vive controller moved. But the attribute "position" of controller element is not updated.

If I build a box at the position of controller after the moving, the position of new box is not at the new position of the controller, but the old position of the controller.

Therefore I try to set the 'position' of controller as the "newPosition" from event "teleported", but it doesn't work.

https://glitch.com/edit/#!/join/21f0cfd9-2fa0-49f3-910b-aedb91df3d3b

Maybe has someone idea about it?


Solution

  • I have solved the problem. I use the relative position as absolute position before.