pub fn update_sleep(
bodies: &mut [Option<RigidBody>],
contacts: &[Contact],
dt: f32,
)Expand description
Island-based sleep: groups of connected dynamic bodies sleep/wake together. This prevents cascading wake in stacks where individual bodies sleep at different times, corrupting the warm start cache and causing endless blinking.