Skip to content

Commit

Permalink
constraints: Fix some extra undefined matrix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Aug 15, 2024
1 parent d03f6a0 commit 0a1703a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vphysics_jolt/vjolt_constraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ void JoltPhysicsConstraint::InitialiseRagdoll( IPhysicsConstraintGroup *pGroup,
// Allow ~1deg either side to avoid joints glitching out.
settings.mTwistMinAngle = Min( limits.lAxisLimitsRad[0].Min, DEG2RAD( -1.0f ) );
settings.mTwistMaxAngle = Max( limits.lAxisLimitsRad[0].Max, DEG2RAD( 1.0f ) );
settings.mNormalHalfConeAngle = Max( 0.5f * ( limits.lAxisLimitsRad[ X_AXIS ].GetRange() ), DEG2RAD( 1.0f ) );
settings.mPlaneHalfConeAngle = Max( 0.5f * ( limits.lAxisLimitsRad[ Y_AXIS ].GetRange() ), DEG2RAD( 1.0f ) );
settings.mNormalHalfConeAngle = Max( 0.5f * ( limits.lAxisLimitsRad[ MatrixAxis::X ].GetRange() ), DEG2RAD( 1.0f ) );
settings.mPlaneHalfConeAngle = Max( 0.5f * ( limits.lAxisLimitsRad[ MatrixAxis::Y ].GetRange() ), DEG2RAD( 1.0f ) );

settings.mSpace = JPH::EConstraintSpace::LocalToBodyCOM;

Expand Down

0 comments on commit 0a1703a

Please sign in to comment.