In my WebXR projects, I previously utilized a method wherein I created a weapon object attached to the 3D camera by designating it as a child of the camera3D (for example,
camera3d.add(weapon)). This approach yielded consistent results akin to those in a Three.js 3D scene even within the WebXR environment.
However, it has come to my attention that WebXR has undergone significant changes in recent months, particularly concerning the movement and rotation of the 3D camera. While objects attached to the 3D camera remain properly affixed in a standard 3D scene, the behavior becomes erratic and unpredictable upon transitioning to the WebXR mode.
I am in search of a solution to replicate a scene as a simplistic “box,” perpetually positioned in front of the 3D camera, in both the conventional Three.js rendering and WebXR mode.
Any suggestments or tutorial or examples ?