Patches

Spring Animation

Spring Animation

Creates a animation based on a physically modeled spring. This also allows for interruptible animations by controlling the velocity of the spring.

Spring Animation

  • Number
  • Mass
  • Tension
  • Friction
  • Gesture Active
  • Gesture Velocity
  •  

Number

The number to animate to.

Mass

The mass of the object being animated.

Tension

How much tension the spring has.

Friction

How much friction should be applied to the spring.

Gesture Active

If a gesture is active, the spring will animate immediately to its destination value. When this switches from On to Off, the spring will sample the Gesture Velocity and use it for the animation. This allows for throwing an object and allowing for the spring to continue naturally from the throw point. Typically this is the value from the Down port on an Interaction or Gesture patch.

Gesture Velocity

The current velocity of the gesture being applied to the spring. When Gesture Active goes from On to Off, this value is sampled for the spring animation. See Gesture Active for more information.

Output

The current value of the animation.