I have been working on a physics engine based on box2d. I implemented a constraint solver which solves for the forces perfectly but has stability issues. A 100 meter rod is connected to an object in the center of the screen with a revolute joint. When I simulate it at 60 fps and the velocity reaches a certain speed the connected point on the rod overshoots the center of the screen due to a constant velocity over the time step. I did not see any jagged movements on the box2d videos. How does box2d keep everything so stable even at large time steps?
Unstable constraints in custom physics engine
General DiscussionOriginal thread: https://box2d.org/forum/viewtopic.php?t=10148