Commit 3275ba2a authored by Esguerra Montana's avatar Esguerra Montana
Browse files

Update index.html

parent 3147226b
Pipeline #9621 passed with stage
in 39 seconds
......@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
let fox;
loader.load("./fox/Fox.gltf", function(gltf) {
fox = gltf.scene;
fox.scale.set(0.001, 0.001, 0.001); // Adjust the scale as needed
fox.scale.set(0.05, 0.05, 0.05); // Adjust the scale as needed
});
session.addEventListener("select", (event) => {
if (fox) {
const clone = fox.clone();
clone.position.copy(reticle.position);
clone.scale.set(0.001, 0.001, 0.001); // Ensure the clone is also scaled down
clone.scale.set(0.05, 0.05, 0.05); // Ensure the clone is also scaled down
scene.add(clone);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment