r/programming • u/PeterBrobby • 16d ago
Physics Programming Part 5: Spring Physics
https://youtu.be/nDk4XqJLG14I explain the mathematics of spring mechanics then implement a solution in C++ using a net as an example. Implementation begins at 10:05. Feedback is welcome.
15
Upvotes
View all comments
Show parent comment
1
u/cruz-francisco2703 7d ago
That answers the timestep part; which integration scheme are you using? Stability also depends on the integrator and the spring's natural frequency relative to the step.