diff --git a/Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h b/Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h index 65aa0acea..c2a47547f 100644 --- a/Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h +++ b/Jolt/Physics/Constraints/ConstraintPart/SwingTwistConstraintPart.h @@ -51,7 +51,7 @@ class SwingTwistConstraintPart constexpr float cFreeAngle = DegreesToRadians(179.5f); // Assume sane input - JPH_ASSERT(inTwistMinAngle <= inTwistMinAngle); + JPH_ASSERT(inTwistMinAngle <= inTwistMaxAngle); JPH_ASSERT(inSwingYMinAngle <= inSwingYMaxAngle); JPH_ASSERT(inSwingZMinAngle <= inSwingZMaxAngle); JPH_ASSERT(inSwingYMinAngle >= -JPH_PI && inSwingYMaxAngle <= JPH_PI);