lua.wetgenes.chipmunk.space.add_handler
space:add_handler(handler,id1,id2)
space:add_handler(handler,id1)
space:add_handler(handler)
Add collision callback handler, for the given collision types.
The handler table will have other values inserted in it and will be used as an arbiter table in callbacks. So always pass in a new one to this function. There does not seem to be a way to free handlers so be careful what you add.
id1,id2 can be a string in which case it will be converted to a number via the space:type function.