Explorar el Código

Improve diff of code snippet example (#163)

Co-authored-by: Torsten Knauf <Torsten.Knauf@maibornwolff.de>
shaman-apprentice hace 5 años
padre
commit
573635944d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      threejs/lessons/threejs-scenegraph.md

+ 1 - 0
threejs/lessons/threejs-scenegraph.md

@@ -209,6 +209,7 @@ Continuing that same pattern let's add a moon.
 
 const earthMaterial = new THREE.MeshPhongMaterial({color: 0x2233FF, emissive: 0x112244});
 const earthMesh = new THREE.Mesh(sphereGeometry, earthMaterial);
+-earthMesh.position.x = 10; // note that this offset is already set in its parent's THREE.Object3D object "earthOrbit"
 -solarSystem.add(earthMesh);
 +earthOrbit.add(earthMesh);
 objects.push(earthMesh);

粤ICP备19079148号