chickadee » physics » space-on-collision-presolve

space-on-collision-presolve spaceprocedure
set! (space-on-collision-presolve space) funcsetter

Two shapes are touching during this step. Return #f from the callback to make Chipmunk ignore the collision this step or #t to process it normally. Additionally, you may override collision values using /(set! arbiter-fricion ...)/ /(set! arbiter-elasticity ...)/ or /(set! arbiter-surface-velocity ...)/ to provide custom friction, elasticity, or surface velocity values.

func must have the form:

(lambda (arbiter space data) ...)