There are several scenarios where I would like to update a player’s position when they are in or on another mesh. For example a player steps onto an elevator platform, presses a button and then is lifted up with the platform. Or several players are on a ship and when the ship’s position is translated, all the riders move relative to the boat.
This resembles a classic parenting issue where the child is the webxr camera and the players can still teleport around on the ship but wherever the ship moves all the players are moved too. Maybe the child is not permanently parented, because I still want to allow the player to step off of the elevator and let the elevator go back down independently.
I tried to put together a parenting test in this playground but it doesn’t seem to work https://playground.babylonjs.com/#F41V6N#301
I parented the webxr camera to a sphere and then I lift the sphere, but the camera’s immersive POV doesn’t seem to move. I’m using the webxr emulator (haven’t tried this on the Quest yet)
Am I doing something wrong? Or maybe there is a better technique to do this?