From: Scott Worley Date: Tue, 27 May 2014 03:43:13 +0000 (-0700) Subject: Name z X-Git-Url: http://git.scottworley.com/nt3d/commitdiff_plain/6814d9fede0f0e86f0dd01aff19c9a412495b1cd?hp=3fdffa6cef1752afc1143dac2d8b9966fc91cc2d Name z --- diff --git a/medusa.html b/medusa.html index 0576312..d133692 100644 --- a/medusa.html +++ b/medusa.html @@ -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); - 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])); }