mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +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
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue