From fe2f2d501952b3de7c08790725584fd1ef028370 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Tue, 26 Feb 2013 17:33:40 -0800 Subject: [PATCH] Reduce mouse force on hand. --- interface/src/Hand.cpp | 1 - interface/src/main.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/interface/src/Hand.cpp b/interface/src/Hand.cpp index 9ba98c8e12..157f0ee38e 100644 --- a/interface/src/Hand.cpp +++ b/interface/src/Hand.cpp @@ -62,7 +62,6 @@ void Hand::simulate(float deltaTime) const float LINEAR_SPRING_CONSTANT = 500; const float LINEAR_DAMPING_COEFFICIENT = 2.0*powf(LINEAR_SPRING_CONSTANT,0.5); const float RNOISE = 0.1; - const float VDECAY = 5.0; // If noise, add a bit of random velocity if (noise) { diff --git a/interface/src/main.cpp b/interface/src/main.cpp index e6901a2829..5f372e5065 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -396,7 +396,7 @@ void simulateHand(float deltaTime) { if (mouse_pressed == 1) { // Add a velocity to the hand corresponding to the detected size of the drag vector - const float MOUSE_HAND_FORCE = 3.0; + const float MOUSE_HAND_FORCE = 1.5; float dx = mouse_x - mouse_start_x; float dy = mouse_y - mouse_start_y; glm::vec3 vel(dx*MOUSE_HAND_FORCE, -dy*MOUSE_HAND_FORCE*(WIDTH/HEIGHT), 0);