mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +02:00
fix bug in ElbowConstraint::apply()
This commit is contained in:
parent
acf9933925
commit
488f6aa7d8
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ bool ElbowConstraint::apply(glm::quat& rotation) const {
|
||||||
|
|
||||||
// update rotation
|
// update rotation
|
||||||
const float MIN_SWING_REAL_PART = 0.99999f;
|
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) {
|
if (twistWasClamped) {
|
||||||
twistRotation = glm::angleAxis(clampedTwistAngle, _axis);
|
twistRotation = glm::angleAxis(clampedTwistAngle, _axis);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue