I am trying to use movement rather than teleportation in XR.
// Switch to movement module
const featuresManager =defaultXRExperience.baseExperience.featuresManager;
featuresManager.disableFeature(WebXRFeatureName.TELEPORTATION);
featuresManager.enableFeature(WebXRFeatureName.MOVEMENT );
This gives an error:TS2339: Property ‘MOVEMENT’ does not exist on type ‘typeof WebXRFeatureName’.
Has something changed with MOVEMENT? This is Windows 10/Vue if that helps.
and did an npm update.
Also had to add:
// Switch to movement module
const featuresManager = defaultXRExperience.baseExperience.featuresManager;
featuresManager.disableFeature(WebXRFeatureName.TELEPORTATION);
featuresManager.enableFeature(WebXRFeatureName.MOVEMENT, “latest”, {
xrInput: defaultXRExperience.input,
} );