Manual:

Tutorials:

API:

ChipmunkDampedSpring

Class : Inherits from ChipmunkConstraint

Works like a regular compression spring + damper.


Variables


anchr1Anchor point on the first body in local transform coordinates where the spring is attached.
anchor2Anchor point on the second body in local transform coordinates where the spring is attached.
restLengthLength of the spring where it's at equilibrium.
stiffnessStiffness of the spring.
dampingAmount of linear damping applied by the spring.


Inherited Variables


bodyBThe other body that the constraint attaches to.
maxForceMaximum force the constraint is allowed to use.
errorBiasRate that error (stretching of the constraint) is fixed.
maxForceMaximum rate that constraint error is fixed.