I’m trying to configure meshes, that the teleportation ray cannot pass (e.g walls in a room).
I’m using the WebXRExperienceHelper and this is my code:
if (xrHelper.baseExperience != null) {
const featuresManager = xrHelper.baseExperience.featuresManager;
xrHelper.teleportation = featuresManager.enableFeature(BABYLON.WebXRFeatureName.TELEPORTATION, 'stable', {
xrInput: xrHelper.input,
floorMeshes: [ground],
pickBlockerMeshes: collisionMeshes
}) as BABYLON.WebXRMotionControllerTeleportation;
}
From my understanding the pickBlockerMeshes option should contain the meshes, that the teleportation ray cannot bypass, as described in the IWebXRTeleportationOptions documentation.
In my case its not working. I double checked the meshes, aswell as other teleportation configurations and they work, so I’m not sure if this is a bug or I am missing something.