Spring

Description for class Spring:

A Spring is used to create an elastic connection between two Real objects. Springs define only a connection between objects and are not physical objects themselves. Thus, Springs can pass through each other without colliding.

A number of paramters can be specified for springs. The length parameter specifies the length of the spring when it is completely relaxed. The spring will always apply a force to attempt to expand or contract to the specified length. The strength parameter specifies the amount of force that is applied to try to attain the spring's natural length. Finally, the damping parameter specifies the friction or damping proportional to the spring's velocity.

If physical realism is important, springs should be used with caution. As the strength and damping constants of the spring increase, springs can generate enormous forces that will cause numerical overflows or other undesirable behavior. Keep spring strength and damping constants as low as possible to avoid this behavior.

The Spring class is new as of version 2.1.

Inherits from Object

Full API documentation for the class Spring: