Allocate and initialize a damped spring.
cpDampedSpringNew(a, b, anchorA, anchorB, restLength, stiffness, damping)
| a | [ |
|---|---|
| b | [ |
| anchorA | [ |
| anchorB | [ |
| restLength | [ |
| stiffness | [ |
| damping | [ |
[cpConstraint *]
C function prototype: CP_EXPORT cpConstraint* cpDampedSpringNew(cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB, cpFloat restLength, cpFloat stiffness, cpFloat damping);