I'm trying to model a spring damper system from a tutorial that I've found on this site.
If I use the exact same parameters as the ones in the tutorial the system is not stable. I've downloaded the code and verified that the parameters were the same as mine.
a = (k * u) - (d * v);
v = v + a;
s = s + v;
I can make it stable by adding a factor 0.3, like so
s = 0.3 * s + v
However, I would like to know how to make it stable without hacking it. I'm aware that the integrator is not good, but it should still work for this case, because it does so in the demo.