chickadee » physics » space-collision-bias

space-collision-bias spaceprocedure
set! (space-collision-bias space) valuesetter

Chipmunk allows fast moving objects to overlap, then fixes the overlap over time. Overlapping objects are unavoidable even if swept collisions are supported, and this is an efficient and stable way to deal with overlapping objects. The bias value controls what percentage of overlap remains unfixed after a second and defaults to ~0.2%. Valid values are in the range from 0 to 1, but using 0 is not recommended for stability reasons. The default value is calculated as (vect-pow((- 1.0 0.1) 60.0) meaning that Chipmunk attempts to correct 10% of error ever 160th of a second. 'Note<procedure> Very very few games will need to change this value.</procedure>