From 9dd423f5448ecd9724cf0185b727208b810c63f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Ventrella Date: Thu, 18 Apr 2013 19:30:27 -0700 Subject: [PATCH] removed updateAvatarHand function --- interface/src/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 75b6132be6..80341e5f3b 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -426,6 +426,22 @@ void reset_sensors() } } +/* +void updateAvatarHand(float deltaTime) { + // If mouse is being dragged, send current force to the hand controller + if (mousePressed == 1) + { + // NOTE--PER: Need to re-implement when ready for new avatar hand movements + + const float MOUSE_HAND_FORCE = 1.5; + float dx = mouseX - mouseStartX; + float dy = mouseY - mouseStartY; + glm::vec3 vel(dx*MOUSE_HAND_FORCE, -dy*MOUSE_HAND_FORCE*(WIDTH/HEIGHT), 0); + //myAvatar.hand->addVelocity(vel*deltaTime); + } +} +*/ + // // Using gyro data, update both view frustum and avatar head position //