Hello,
I’m running a project from editor into Oculus Quest 2 and, when in VR mode, I’m drawing, in the update, a coloured line straight from the controller tip to show where user is pointing at.
In the first scene everything works well and I have a single line following the controller.
As soon as I change the scene the line from the controller still works but I can also see every line drawn in previous frames as they persists in the scene.
This happens whether the scene changes before or after VR session start.
This is the snippet I use to add a controller to the scene:
this.app.xr.input.on('add', function (inputSource) {
....
}, this);
Any idea?
Thanks in advance.