Commit ca2d3138 authored by Ayivor's avatar Ayivor
Browse files

Update 2-Hit.html

parent 43bb92e1
No related merge requests found
Pipeline #8128 passed with stage
in 7 seconds
Showing with 4 additions and 4 deletions
+4 -4
......@@ -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);
}
......
Supports Markdown
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