Amount of encouraged penetration between colliding shapes. Used to reduce oscillating contacts and keep the collision cache warm. Defaults to 0.1. If you have poor simulation quality, increase this number as much as possible without allowing visible amounts of overlap.

cpSpaceSetCollisionSlop(space, collisionSlop)

Arguments

space

[cpSpace *]

collisionSlop

[cpFloat]

Details

C function prototype: CP_EXPORT void cpSpaceSetCollisionSlop(cpSpace *space, cpFloat collisionSlop);