Skip to content

Commit

Permalink
Use PositiveInfinity for deactivation (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 authored May 31, 2024
1 parent ad60307 commit b777716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jitter2/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ internal void ActivateBodyNextStep(RigidBody body)

internal void DeactivateBodyNextStep(RigidBody body)
{
body.sleepTime = float.MaxValue / 2.0f;
body.sleepTime = float.PositiveInfinity;
}

/// <summary>
Expand Down

0 comments on commit b777716

Please sign in to comment.