revert unintended change to "gravity" term in IK

This commit is contained in:
Andrew Meadows 2015-08-31 14:32:49 -07:00
parent bdcc68ce36
commit 0e5b357362

View file

@ -671,7 +671,7 @@ void Rig::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm::q
float gravityAngle = glm::angle(gravityDelta);
const float MIN_GRAVITY_ANGLE = 0.5f;
float mixFactor = 0.5f;
float mixFactor = 0.1f;
if (gravityAngle < MIN_GRAVITY_ANGLE) {
// the final rotation is a mix of the two
mixFactor = 0.5f * gravityAngle / MIN_GRAVITY_ANGLE;