jitterphysics2 icon indicating copy to clipboard operation
jitterphysics2 copied to clipboard

Body.sleepTime uses Infinities + can create sleeping Body

Open thygrrr opened this issue 2 months ago • 1 comments

RigidBodies can now be created InActive via optional boolean parameter to World.CreateRigidBody(...), which defaults to true, the former behaviour.

RigidBodies track their sleep time using float.PositiveInfinity when deactivated, ensuring they really never wake up on their own.

Unit Test Cases added in ActivationTests.cs

thygrrr avatar May 08 '24 07:05 thygrrr