Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

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.
anchr2Anchor 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.
impulseThe magnitude of the impulse this constraint applied last frame.
maxForceMaximum force the constraint is allowed to use.
errorBiasRate that error (stretching of the constraint) is fixed.
maxBiasMaximum rate that constraint error is fixed.