Set the stiffness of the spring in force/distance.

cpDampedSpringSetStiffness(constraint, stiffness)

Arguments

constraint

[cpConstraint *]

stiffness

[cpFloat]

Details

C function prototype: CP_EXPORT void cpDampedSpringSetStiffness(cpConstraint *constraint, cpFloat stiffness);