R/cpSpace.R
cpSpaceSetDamping.Rd
Damping rate expressed as the fraction of velocity bodies retain each second. A value of 0.9 would mean that each body's velocity will drop 10% per second. The default value is 1.0, meaning no damping is applied. @note This damping value is different than those of cpDampedSpring and cpDampedRotarySpring.
cpSpaceSetDamping(space, damping)
space | [ |
---|---|
damping | [ |
C function prototype: CP_EXPORT void cpSpaceSetDamping(cpSpace *space, cpFloat damping);