Skip to main content

warm_start_contacts

Function warm_start_contacts 

Source
pub fn warm_start_contacts(
    bodies: &mut [Option<RigidBody>],
    contacts: &[Contact],
)
Expand description

Pre-apply cached impulses from previous frame (warm starting). This gives the iterative solver a head start, dramatically improving convergence for stacks.