reduced gravity effect in IK

This commit is contained in:
Andrew Meadows 2015-08-31 14:36:42 -07:00
parent 0e5b357362
commit 47c18fa18a

View file

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