From 68d5d600b747e90d2af5aa100324c8ddb7bbf5ec Mon Sep 17 00:00:00 2001 From: Daniela Date: Tue, 28 Nov 2017 23:16:34 +0000 Subject: [PATCH] YAW ROLL PITCH tool gizmos + functionality --- scripts/system/libraries/entitySelectionTool.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/system/libraries/entitySelectionTool.js b/scripts/system/libraries/entitySelectionTool.js index f0f87d6aa2..f4f5af8d5b 100644 --- a/scripts/system/libraries/entitySelectionTool.js +++ b/scripts/system/libraries/entitySelectionTool.js @@ -1123,9 +1123,7 @@ SelectionDisplay = (function() { var look = Vec3.normalize(Vec3.subtract(cameraPosition, objectCenter)); // place yaw, pitch and roll rotations on the avatar referential - yawHandleRotation = Quat.multiply(MyAvatar.orientation , yawHandleRotation); - pitchHandleRotation = Quat.multiply(MyAvatar.orientation , pitchHandleRotation); - rollHandleRotation = Quat.multiply(MyAvatar.orientation , rollHandleRotation); + var avatarReferential = Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({ x: 0, y: 180, @@ -1246,7 +1244,6 @@ SelectionDisplay = (function() { yawHandleRotation = Quat.lookAt(yawCorner, Vec3.sum(yawCorner, upVector), Vec3.subtract(yawCenter,yawCorner)); yawHandleRotation = Quat.multiply(Quat.angleAxis(45, upVector), yawHandleRotation); - yawCorner = Vec3.sum(boundsCenter, Vec3.sum(Vec3.sum(projUP[0], projRIGHT[1]), projFRONT[1])); pitchCorner = Vec3.sum(boundsCenter, Vec3.sum(Vec3.sum(projUP[1], projRIGHT[0]), projFRONT[1])); @@ -1315,6 +1312,8 @@ SelectionDisplay = (function() { position: rollCorner, rotation: rollHandleRotation }); + + }; // FUNCTION: UPDATE HANDLE SIZES