Skip to main content

Second-Order Dynamics

The Second-Order Dynamics source provides damped spring motion. "Giving Personality to Procedural Animations using Math" provides an excellent primer on the topic, and was used to implement this source.

You can control three important properties of the system:

  • Frequency (F) – how rapidly the spring tries to oscillate
  • Damping (Z) – how quickly the system bleeds off energy
  • Responsiveness (R) – how quickly the system reacts to a change in input
    • Negative values cause the system to go backwards at first
    • Values over one cause the system to overshoot
A time source is required

This source expects for the following global parameters to be available:

  • Shared/Time/Delta
  • Shared/Time/DeltaInverse

You can attach the included "Time" prefab to your avatar to provide these.