Browse Source

fix moonOrbit diagram/code

Gregg Tavares 4 years ago
parent
commit
9bf79c0c65

File diff suppressed because it is too large
+ 0 - 0
threejs/lessons/resources/images/scenegraph-sun-earth-moon.svg


+ 4 - 3
threejs/lessons/threejs-scenegraph.md

@@ -224,9 +224,9 @@ objects.push(earthMesh);
 +objects.push(moonMesh);
 ```
 
-Again we added another invisible scene graph node, an `Object3D` called `earthOrbit`
-and added both the `earthMesh` and the `moonMesh` to it. The new scene graph looks like
-this.
+Again we added more invisible scene graph nodes. The first, an `Object3D` called `earthOrbit`
+and added both the `earthMesh` and the `moonOrbit` to it, also new. We then added the `mooMesh`
+to the `moonRobit`. The new scene graph looks like this.
 
 <img src="resources/images/scenegraph-sun-earth-moon.svg" align="center">
 
@@ -305,6 +305,7 @@ some function to add the helpers for each node
 +makeAxisGrid(sunMesh, 'sunMesh');
 +makeAxisGrid(earthOrbit, 'earthOrbit');
 +makeAxisGrid(earthMesh, 'earthMesh');
++makeAxisGrid(moonOrbit, 'moonOrbit');
 +makeAxisGrid(moonMesh, 'moonMesh');
 ```
 

+ 1 - 0
threejs/threejs-scenegraph-sun-earth-moon-axes-grids.html

@@ -150,6 +150,7 @@ function main() {
   makeAxisGrid(sunMesh, 'sunMesh');
   makeAxisGrid(earthOrbit, 'earthOrbit');
   makeAxisGrid(earthMesh, 'earthMesh');
+  makeAxisGrid(moonOrbit, 'moonOrbit');
   makeAxisGrid(moonMesh, 'moonMesh');
 
   function resizeRendererToDisplaySize(renderer) {

Some files were not shown because too many files changed in this diff