Set the rest length of the spring.

cpDampedSpringSetRestLength(constraint, restLength)

Arguments

constraint

[cpConstraint *]

restLength

[cpFloat]

Details

C function prototype: CP_EXPORT void cpDampedSpringSetRestLength(cpConstraint *constraint, cpFloat restLength);