From 7e0c618e26af2ae93286022c837e181c3556e436 Mon Sep 17 00:00:00 2001 From: Jonathan B Date: Sat, 24 Feb 2024 01:16:55 -0600 Subject: [PATCH] SwingTwistConstraintPart: assert Min vs Max (#945) --- .../Constraints/ConstraintPart/SwingTwistConstraintPart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);