diff --git a/public/2-Hit.html b/public/2-Hit.html index e7b4209053dacd75b61c3e8a9bea49ad8d406a1e..b43937348cc338914e7e16e3449016604fc93cbd 100644 --- a/public/2-Hit.html +++ b/public/2-Hit.html @@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re scene.add(reticle); }) -let flower; +let car; loader.load("https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/ben2/-/raw/master/public/Car_cartoon.gltf", function(gltf) { - flower = gltf.scene; + car = gltf.scene; }); session.addEventListener("select", (event) => { - if (flower) { - const clone = flower.clone(); + if (car) { + const clone = car.clone(); clone.position.copy(reticle.position); scene.add(clone); }