From ca2d313836ea6fdd42ccf3c04f27505057a86bda Mon Sep 17 00:00:00 2001 From: Ayivor <bennard.ayivor1@gmail.com> Date: Tue, 20 Jun 2023 17:38:03 +0000 Subject: [PATCH] Update 2-Hit.html --- public/2-Hit.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/2-Hit.html b/public/2-Hit.html index e7b4209..b439373 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); } -- GitLab