fix bug in ElbowConstraint::apply()

This commit is contained in:
Andrew Meadows 2015-08-12 13:34:23 -07:00
parent acf9933925
commit 488f6aa7d8

View file

@ -67,7 +67,7 @@ bool ElbowConstraint::apply(glm::quat& rotation) const {
// update rotation
const float MIN_SWING_REAL_PART = 0.99999f;
if (twistWasClamped || fabsf(swingRotation.w < MIN_SWING_REAL_PART)) {
if (twistWasClamped || fabsf(swingRotation.w) < MIN_SWING_REAL_PART) {
if (twistWasClamped) {
twistRotation = glm::angleAxis(clampedTwistAngle, _axis);
}