Skip to main content

CONTACT_DISTANCE

Constant CONTACT_DISTANCE 

Source
pub const CONTACT_DISTANCE: f64 = 0.005;
Expand description

Distance criterea for contacts and collisions (TOI contacts).

Continuous collision detection will aim to return the TOI for when the objects are at a distance approximately 0.5 * CONTACT_DISTANCE in order to prevent intersection due to numerical error.

Post-impulse position correction will also move objects apart to a distance of 0.5 * CONTACT_DISTANCE.