I saw this example of runge kutta online, I use the unity game engine, and am working on making softbody physics (squishy things like a sponge).
It was working, until you run it for like a minute or so, then the vertices start to explode (they start shaking really badly and the mesh does not behave like it is supposed to) I watched a youtuber name "Gonkee" and he made a video called "I built my own physics engine from scratch" or something like that. Anyway, he said the same thing happened to him, so I am 98% sure that this is not a coding problem.
He said he used Runge Kutta 4 because of "some rounding error". I found some guy's code on github. (FYI: On the first page you can see a code snippet, on line 14, the first parameter should be y, along with the other 3, to make 4 total)
I see that they use the examples of wovles, rabit, starttime, endtime, and steps.
Q: how do these examples he use corelate to adding force using Euler's method? Mine is like this: Add force per second, Apply force per second
Sorry if I am missing something and my question doesn't make sense, I just started learning about Runge Kutta and have almost no idea how it works.