TraerSpring:
Filter:
TraerPhysics/Classes (extension) | TraerPhysics

TraerSpring
ExtensionExtension

act on two particles

Description

Springs connect 2 particles and try to keep them a certain distance apart. They have 3 properties:

  1. Rest Length - the spring wants to be at this length and acts on the particles to push or pull them exactly this far apart at all times.
  2. Strength - If they are strong they act like a stick. If they are weak they take a long time to return to their rest length.
  3. Damping - If springs have high damping they don't overshoot and they settle down quickly, with low damping springs oscillate.
NOTE: Documentation is only very slightly adapted to comply with the SuperCollider port. See the original by Jeffrey Traer Bernstein here... http://murderandcreate.com/physics/

Instance Methods

.getOneEnd

.getTheOtherEnd

Return the particles that are on either end of this spring.

Returns:

.currentLength

The current length of the spring.

Returns: