From ffeac220f9746500dd8285d9fb90c8b71a8049a8 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Mon, 8 Jun 2015 16:40:50 -0700 Subject: [PATCH] fix typo in variable name --- examples/grab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/grab.js b/examples/grab.js index aacd814ba5..3b3a66030e 100644 --- a/examples/grab.js +++ b/examples/grab.js @@ -129,7 +129,7 @@ function mouseIntersectionWithPlane(pointOnPlane, planeNormal, event) { // we re-route the intersection to be in front at max distance. var rayDirection = Vec3.subtract(pickRay.direction, Vec3.multiply(planeNormal, dirDotNorm)); rayDirection = Vec3.normalize(rayDirection); - localIntersection = Vec3.multiply(rayDireciton, MAX_GRAB_DISTANCE); + localIntersection = Vec3.multiply(rayDirection, MAX_GRAB_DISTANCE); localIntersection = Vec3.sum(localIntersection, Vec3.multiply(planeNormal, distanceFromPlane)); } var worldIntersection = Vec3.sum(cameraPosition, localIntersection);