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/PeterBrobby 9d ago
I use a fixed time step of a 120th of a second currently. If that’s what you mean. I explained my update system in the previous video: The Physics Update Loop.