diff --git a/VirtualShop-new.html b/VirtualShop-new.html index 7899bcd..e7cd4c7 100644 --- a/VirtualShop-new.html +++ b/VirtualShop-new.html @@ -36,7 +36,7 @@ // カメラの作成 camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000); - camera.position.set(1, 5, 5); + camera.position.set(0, 15, 20); camera.lookAt(new THREE.Vector3(0, 0, 0)); // ライトの作成 @@ -49,7 +49,7 @@ const loader = new GLTFLoader(); loader.load( - 'https://www.yatex.org/gitbucket/j2311/about-Leaflet/raw/main/VirtualShop-final.glb', + 'https://www.yatex.org/gitbucket/C1210887/about-Leaflet/raw/main/VirtualShop-final.glb', function (gltf) { VirtualShop = gltf.scene; scene.add(VirtualShop); @@ -57,7 +57,7 @@ ); loader.load( - 'https://www.yatex.org/gitbucket/j2311/about-Leaflet/raw/main/worldstick.glb', + 'https://www.yatex.org/gitbucket/C1210887/about-Leaflet/raw/main/worldstick.glb', function (gltf) { WorldStick = gltf.scene; scene.add(WorldStick); @@ -65,7 +65,7 @@ ); loader.load( - 'https://www.yatex.org/gitbucket/j2311/about-Leaflet/raw/main/B-chan_plus_defult.glb', + 'https://www.yatex.org/gitbucket/C1210887/about-Leaflet/raw/main/B-chan_plus_defult.glb', function (gltf) { bchanModel = gltf.scene; scene.add(bchanModel); @@ -76,8 +76,10 @@ gltf.animations.forEach((clip) => { mixer.clipAction(clip).play(); // アニメーションを再生 }); + bchanModel.position.set(0, 0, 20); } ); + // カメラコントロールの作成 controls = new PointerLockControls(camera, document.body);