]> git.scottworley.com Git - nt3d/commitdiff
Name z
authorScott Worley <scottworley@scottworley.com>
Tue, 27 May 2014 03:43:13 +0000 (20:43 -0700)
committerScott Worley <scottworley@scottworley.com>
Tue, 27 May 2014 03:43:13 +0000 (20:43 -0700)
medusa.html

index 0576312144c3a38931b80f89f473e9a943138b7d..d13369236c3f4c19f79fa1798aa0044de0941b4a 100644 (file)
@@ -12,7 +12,8 @@
           var angle = (finger_angle + twirl_angle * finger_progress) * 2 * Math.PI;
           var x = ring_radius * Math.cos(angle);
           var y = ring_radius * Math.sin(angle);
           var angle = (finger_angle + twirl_angle * finger_progress) * 2 * Math.PI;
           var x = ring_radius * Math.cos(angle);
           var y = ring_radius * Math.sin(angle);
-          path.push([x, y, params.finger_height * finger_progress]);
+          var z = params.finger_height * finger_progress;
+          path.push([x, y, z]);
         }
         return nt3d.extrude(path, finger_crosssection, [0, 0, 1], nt3d.pathnormals_from_point(path, [0, 0, 0]));
       }
         }
         return nt3d.extrude(path, finger_crosssection, [0, 0, 1], nt3d.pathnormals_from_point(path, [0, 0, 0]));
       }