chickadee » physics » space-on-collision-begin

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

Two shapes just started touching for the first time this step. Return true from the callback to process the collision normally or false to cause Chipmunk to ignore the collision entirely. If you return false, the /presolve/ and /postsolve/ callbacks will never be run, but you will still recieve a separate event when the shapes stop overlapping.

func must have the form:

(lambda (arbiter space data) ...) -> boolean

Return #t from the callback to process the collision normally or #f to cause Chipmunk to ignore the collision entirely. If you return #f, the (presolve) and (postSolve) callbacks will never be run, but you will still recieve a separate event when the shapes stop overlapping.