浏览代码

Fix code error in load-gltf.html (#24976)

losting 2 年之前
父节点
当前提交
2bc5ae9acf
共有 4 个文件被更改,包括 7 次插入7 次删除
  1. 2 2
      manual/en/load-gltf.html
  2. 2 2
      manual/ja/load-gltf.html
  3. 2 2
      manual/ko/load-gltf.html
  4. 1 1
      manual/zh/load-gltf.html

+ 2 - 2
manual/en/load-gltf.html

@@ -271,7 +271,7 @@ the new <a href="/docs/#api/en/core/Object3D"><code class="notranslate" translat
 -    cars = root.getObjectByName('Cars');
 +    const loadedCars = root.getObjectByName('Cars');
 +    const fixes = [
-+      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI +* .5], },
++      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI * .5], },
 +      { prefix: 'CAR_03', rot: [0, Math.PI, 0], },
 +      { prefix: 'Car_04', rot: [0, Math.PI, 0], },
 +    ];
@@ -707,4 +707,4 @@ whatever tool we're using to create the data into our app.</p>
 
 
 
-</body></html>
+</body></html>

+ 2 - 2
manual/ja/load-gltf.html

@@ -249,7 +249,7 @@ gltfLoader.load('resources/models/cartoon_lowpoly_small_city_free_pack/scene.glt
 -    cars = root.getObjectByName('Cars');
 +    const loadedCars = root.getObjectByName('Cars');
 +    const fixes = [
-+      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI +* .5], },
++      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI * .5], },
 +      { prefix: 'CAR_03', rot: [0, Math.PI, 0], },
 +      { prefix: 'Car_04', rot: [0, Math.PI, 0], },
 +    ];
@@ -643,4 +643,4 @@ GLTFファイルはただのJSONファイルなので簡単に中身を見れま
 
 
 
-</body></html>
+</body></html>

+ 2 - 2
manual/ko/load-gltf.html

@@ -262,7 +262,7 @@ gltfLoader.load('resources/models/cartoon_lowpoly_small_city_free_pack/scene.glt
 -    cars = root.getObjectByName('Cars');
 +    const loadedCars = root.getObjectByName('Cars');
 +    const fixes = [
-+      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI +* .5], },
++      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI * .5], },
 +      { prefix: 'CAR_03', rot: [0, Math.PI, 0], },
 +      { prefix: 'Car_04', rot: [0, Math.PI, 0], },
 +    ];
@@ -674,4 +674,4 @@ for (const car of loadedCars.children.slice()) {
 
 
 
-</body></html>
+</body></html>

+ 1 - 1
manual/zh/load-gltf.html

@@ -262,7 +262,7 @@ gltfLoader.load('resources/models/cartoon_lowpoly_small_city_free_pack/scene.glt
 -    cars = root.getObjectByName('Cars');
 +    const loadedCars = root.getObjectByName('Cars');
 +    const fixes = [
-+      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI +* .5], },
++      { prefix: 'Car_08', rot: [Math.PI * .5, 0, Math.PI * .5], },
 +      { prefix: 'CAR_03', rot: [0, Math.PI, 0], },
 +      { prefix: 'Car_04', rot: [0, Math.PI, 0], },
 +    ];