From 9351d5edcae27541fcadad867c86210b75173fdb Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Thu, 10 Mar 2016 12:55:01 -0800 Subject: [PATCH] Rig: warning fix & comments --- libraries/animation/src/Rig.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/animation/src/Rig.cpp b/libraries/animation/src/Rig.cpp index 4e7564472c..bca90b242a 100644 --- a/libraries/animation/src/Rig.cpp +++ b/libraries/animation/src/Rig.cpp @@ -1074,14 +1074,13 @@ void Rig::updateFromHandParameters(const HandParameters& params, float dt) { if (_animSkeleton && _animNode) { const float HAND_RADIUS = 0.05f; - const float MIN_LENGTH = 1.0e-4f; - - // project the hips onto the xz plane. int hipsIndex = indexOfJoint("Hips"); glm::vec3 hipsTrans; if (hipsIndex >= 0) { hipsTrans = _internalPoseSet._absolutePoses[hipsIndex].trans; } + + // Use this capsule to represent the avatar body. const float bodyCapsuleRadius = params.bodyCapsuleRadius; const glm::vec3 bodyCapsuleCenter = hipsTrans - params.bodyCapsuleLocalOffset; const glm::vec3 bodyCapsuleStart = bodyCapsuleCenter - glm::vec3(0, params.bodyCapsuleHalfHeight, 0);