From ed60ee52bab8dd75eb7e839a37c6f9b70ae8dd87 Mon Sep 17 00:00:00 2001 From: Esguerra Montana <32esla1mpg@hft-stuttgart.de> Date: Sun, 9 Jun 2024 18:25:04 +0000 Subject: [PATCH] Update index.html --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index cf25a67..6199511 100644 --- a/public/index.html +++ b/public/index.html @@ -27,9 +27,9 @@ async function activateXR() { const material = new THREE.MeshLambertMaterial({ color: 0xce1256 }); // Create the torus and add it to the demo scene. -const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 80, 8, 2, 2), material); +const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 80, 8), material); //position the next geometry (sphere) -torus.position.x = -2; +torus.position.set(0, 0, -1); // Add the mesh to the scene scene.add( torus ); -- GitLab