Skip to content

Commit

Permalink
SwingTwistConstraintPart: assert Min vs Max (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixIllusion authored Feb 24, 2024
1 parent 894141e commit 7e0c618
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e0c618

Please sign in to comment.