Commit 76e8d2a7 authored by Ayivor's avatar Ayivor
Browse files

Update 2-Hit.html

parent 9e0005e6
Pipeline #8119 passed with stage
in 6 seconds
......@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
scene.add(reticle);
})
let flower;
loader.load("https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/22aybe1mpg/-/raw/master/public2/Car_cartoon.gltf", function(gltf) {
flower = gltf.scene;
let car;
loader.load("https://transfer.hft-stuttgart.de/gitlab/bennard.ayivor1/22aybe1mpg/-/raw/master/gltf/Car_cartoon.gltf", function(gltf) {
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