dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.93k stars 244 forks source link

Allow customising the time until sleep for a rigid body #440

Closed fabriceci closed 1 year ago

fabriceci commented 1 year ago

Currently the time before a body falls asleep cannot be changed and is set to 2 seconds. This PR allows this value to be changed in the RigidBodyActivation of the body.

sebcrozet commented 1 year ago

Thanks!