Uploaded July 2022 | Updated November 2026, 3 hours ago
This video is inspired by the "Giving Personality to Procedural Animations using Math" by @t3ssel8r . I expand on his idea and improve the scheme to be unconditionally stable.
Orange dot represents Verlet-based integration (similar to what @t3ssel8r used in his presentation) and blue one is my semi-analytical version.
You can see that the orange dot keeps jittering and disappearing at high values of frequency, damping and dt, but the blue dot is always behaving well.
To achieve this, instead of integrating the second-order equation numerically, I use its known analytical solution : en.wikipedia.org/wiki/Damping and use this solution to advance the state from time t to t+dt. Since this step is exact, it's unconditionally stable for arbitrary values of frequency, damping and time stepping.
Semi-analytical solution is slightly more expensive, but it's more than compensated when the system becomes stiff. If you're interested, here's the code of the update routine that I came up with (warning: not pretty): pastebin.com/KtHLNiWz
This video is inspired by the "Giving Personality to Procedural Animations using Math" by @t3ssel8r . I expand on his idea and improve the scheme to be unconditionally stable.
Orange dot represents Verlet-based integration (similar to what @t3ssel8r used in his presentation) and blue one is my semi-analytical version.
You can see that the orange dot keeps jittering and disappearing at high values of frequency, damping and dt, but the blue dot is always behaving well.
To achieve this, instead of integrating the second-order equation numerically, I use its known analytical solution : en.wikipedia.org/wiki/Damping and use this solution to advance the state from time t to t+dt. Since this step is exact, it's unconditionally stable for arbitrary values of frequency, damping and time stepping.
Semi-analytical solution is slightly more expensive, but it's more than compensated when the system becomes stiff. If you're interested, here's the code of the update routine that I came up with (warning: not pretty): pastebin.com/KtHLNiWz










