3 ms·
Physics based animation is great, but there are some limitations. Firstly, it's frame-rate dependent as you've described it. You'd need at minimum to multiply
by kibibu 3y ago
Physics based animation is great, but there are some limitations.
Firstly, it's frame-rate dependent as you've described it. You'd need at minimum to multiply by time delta per frame.
Secondly, the integration method you've used is called Euler integration. which is inherently unstable. There are stable approaches but they are more complex and easy to get subtly wrong.
Thirdly, it's not parametric, which (for example) the CSS version is. This might not be important, but for some applications being able to play the animation more slowly, or in reverse, is important.