Skip to content

Commit

Permalink
Body.cpp: correct a typo in a diagnostic message (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold authored Jan 5, 2025
1 parent 06793ab commit d34db61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jolt/Physics/Body/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void Body::SetMotionType(EMotionType inMotionType)
if (mMotionType == inMotionType)
return;

JPH_ASSERT(inMotionType == EMotionType::Static || mMotionProperties != nullptr, "Body needs to be created with mAllowDynamicOrKinematic set tot true");
JPH_ASSERT(inMotionType == EMotionType::Static || mMotionProperties != nullptr, "Body needs to be created with mAllowDynamicOrKinematic set to true");
JPH_ASSERT(inMotionType != EMotionType::Static || !IsActive(), "Deactivate body first");
JPH_ASSERT(inMotionType == EMotionType::Dynamic || !IsSoftBody(), "Soft bodies can only be dynamic, you can make individual vertices kinematic by setting their inverse mass to 0");

Expand Down

0 comments on commit d34db61

Please sign in to comment.