From fd0c19513209d2ec40a509d2df68e30d2586c6bb Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 29 May 2014 15:55:17 -0700 Subject: [PATCH] Code cleanup --- examples/editModels.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/examples/editModels.js b/examples/editModels.js index 6857ed18cf..deada7e1aa 100644 --- a/examples/editModels.js +++ b/examples/editModels.js @@ -305,28 +305,9 @@ function controller(wichSide) { position: newPosition, modelRotation: newRotation }); -// print("Moving " + this.modelID.id); -// Vec3.print("Old Position: ", this.oldModelPosition); -// Vec3.print("Sav Position: ", newPosition); -// Quat.print("Old Rotation: ", this.oldModelRotation); -// Quat.print("New Rotation: ", newRotation); this.oldModelRotation = newRotation; this.oldModelPosition = newPosition; - - - var closestJointIndex = -1; - var closestJointDistance = 10; - for (var i = 0; i < jointList.length; i++) { - var distance = Vec3.distance(MyAvatar.getJointPosition(jointList[i]), newPosition); - if (distance < closestJointDistance) { - closestJointDistance = distance; - closestJointIndex = i; - } - } -// -// print("closestJointIndex: " + closestJointIndex); -// print("closestJointDistance: " + closestJointDistance); } }