[][src]Module yoyo_physics::spring

Damped harmonic oscillator (DHO) suitable for animation.

This implementation is derived from a JavaScript implementation at https://github.com/skevy/wobble. This is the same implementation that is used by React Native. The only difference is that we measure time in seconds, whereas in JavaScript time is measured in milliseconds.

Structs

Spring

This is a spring whose oscillation and velocity we can efficiently approximate.