Hello!
So far I've been doing this:
v = (x - x0) / dt
To determine the compression speed used for damping in spring's equation(
F = x * k + v * c
).
v = compression speed
x = compression
x0 = last frame compression
k = stiffness
c = damping
However, I know that this method is not quite correct and mostly results in critically unstable results. I'm wondering how to calculate it correctly for
- 2 mass connected by a spring case
- a mass connected to a spring which is connected to a static point
And hints and help appreciated :)