Allocate and initialize a damped spring.

cpDampedSpringNew(a, b, anchorA, anchorB, restLength, stiffness, damping)

Arguments

a

[cpBody *]

b

[cpBody *]

anchorA

[cpVect *]

anchorB

[cpVect *]

restLength

[cpFloat]

stiffness

[cpFloat]

damping

[cpFloat]

Value

[cpConstraint *]

Details

C function prototype: CP_EXPORT cpConstraint* cpDampedSpringNew(cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB, cpFloat restLength, cpFloat stiffness, cpFloat damping);