From d486899aadd2558458a82a431bd9b420098812e3 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Mon, 18 May 2015 22:54:00 -0700 Subject: [PATCH] remove unused experimental grab placement --- examples/example/games/grabHockey.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/examples/example/games/grabHockey.js b/examples/example/games/grabHockey.js index 57333e0d1e..afce60c358 100644 --- a/examples/example/games/grabHockey.js +++ b/examples/example/games/grabHockey.js @@ -127,25 +127,6 @@ function forwardPickRayIntersection(pointOnPlane, mouseX, mouseY) { return pickIntersection; } -/* -function yCylinderPickRayIntersection(grabRadius, mouseX, mouseY) { - var pickRay = Camera.computePickRay(mouseX, mouseY); - var angle = Math.asin(pickRay.direction.y); - if (angle > MAX_VERTICAL_ANGLE) { - angle = MAX_VERTICAL_ANGLE; - } else if (angle < MIN_VERTICAL_ANGLE) { - angle = MIN_VERTICAL_ANGLE; - } - var horizontalNormal = pickRay.direction; - horizontalNormal.y = 0; - horizontalNormal = Vec3.normalize(horizontalNormal); - var pickIntersection = Vec3.multiply(horizontalNormal, grabRadius); - pickIntersection.y = grabRadius * Math.tan(angle); - pickIntersection = Vec3.sum(pickIntersection, Camera.getPosition()) - return pickIntersection; -} -*/ - function mousePressEvent(event) { if (!event.isLeftButton) { return;