Re:Verlet Integration and Cloth Physics Simulation
by Y_Y on Monday June 23, 2025 @06:48AM
(#44354305)
Forward Euler is very terrible and can give you wildly wrong answers after just a few steps. If you think higher Runge-Kutta and fancy methods are too complex/expensive you do have cheap and stable options, like implicit euler or leapfrog. It's very likely that your numeric integrator is going to be a hot part of your game loop, it's worth doing ten minutes of research, IMHO.
[ Parent
| on HN ]
Re:Verlet Integration and Cloth Physics Simulation
by kergonath on Monday June 23, 2025 @09:52AM
(#44355828)
> like implicit euler or leapfrog
Leapfrog is so easy to implement, as well. It might require a smaller timestep than some fancy techniques but it is very cheap per timestep. And given that it is accurate enough for statistical Physics simulations, so about 2 orders of magnitude more accurate than it needs to be for a game.