From 014fdcc618a057b4a43e5cbcd5d041608d82d2eb Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Fri, 22 Feb 2013 12:20:01 -0800 Subject: [PATCH] Tweaked hand 'length' --- interface/src/Hand.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/Hand.cpp b/interface/src/Hand.cpp index d7f9cf1847..c7e0c57094 100644 --- a/interface/src/Hand.cpp +++ b/interface/src/Hand.cpp @@ -21,7 +21,7 @@ Hand::Hand(glm::vec3 initcolor) noise = 0.2; scale.x = 0.07; scale.y = scale.x * 5.0; - scale.z = scale.y * 2.0; + scale.z = scale.y * 1.0; } void Hand::render() @@ -46,8 +46,8 @@ void Hand::reset() void Hand::simulate(float deltaTime) { // If noise, add wandering movement - if (noise && (randFloat() < 0.1)) { - position += noise * glm::vec3(randFloat() - 0.5, randFloat() - 0.5, randFloat() - 0.5); + if (noise) { + position += noise * 0.1f * glm::vec3(randFloat() - 0.5, randFloat() - 0.5, randFloat() - 0.5); } // Decay position of hand toward target position -= deltaTime*(position - target);