Browse Source

correct a mistake in writing

winjeysong 5 years ago
parent
commit
a9e4075a80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      threejs/lessons/threejs-load-gltf.md

+ 1 - 1
threejs/lessons/threejs-load-gltf.md

@@ -291,7 +291,7 @@ the new `Object3D` a `cars` array.
 +
 +
 +    root.updateMatrixWorld();
 +    root.updateMatrixWorld();
 +    for (const car of loadedCars.children.slice()) {
 +    for (const car of loadedCars.children.slice()) {
-+      const fix = fixes.find(fix => car.name.startsWith+(fix.prefix));
++      const fix = fixes.find(fix => car.name.startsWith(fix.prefix));
 +      const obj = new THREE.Object3D();
 +      const obj = new THREE.Object3D();
 +      car.getWorldPosition(obj.position);
 +      car.getWorldPosition(obj.position);
 +      car.position.set(0, 0, 0);
 +      car.position.set(0, 0, 0);