R/cpSpace.R
cpSpaceSetCollisionBias.Rd
Determines how fast overlapping shapes are pushed apart. Expressed as a fraction of the error remaining after each second. Defaults to pow(1.0 - 0.1, 60.0) meaning that Chipmunk fixes 10% of overlap each frame at 60Hz.
cpSpaceSetCollisionBias(space, collisionBias)
space | [ |
---|---|
collisionBias | [ |
C function prototype: CP_EXPORT void cpSpaceSetCollisionBias(cpSpace *space, cpFloat collisionBias);