Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

ChipmunkDampedRotarySpring

Class : Inherits from ChipmunkConstraint

Works like a torsion spring + damper.


Variables


restAngleRelative angle between the bodies in degrees where the spring is at equilibrium.
stiffnessStiffness of the spring.
dampingAmount of damping applied to the angular velocity.


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.