Home▸Build & Play▸Game Physics Integrators: Explicit Euler, Semi-Implicit Euler, Verlet and RK4 Energy Drift at Frame Rate

Game Physics Integrators: Explicit Euler, Semi-Implicit Euler, Verlet and RK4 Energy Drift at Frame Rate

Four identical springs are stepped with four different integrators at a chosen frame rate: explicit Euler, semi-implicit (symplectic) Euler, velocity Verlet and fourth-order Runge-Kutta, next to the exact solution. Change the spring frequency, the frame rate and the damping and watch explicit Euler gain energy and blow up while the symplectic methods stay bounded. Growth factors, conserved shadow energy and convergence orders are checked numerically.

Build & Play3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Game Physics Integrators: Explicit Euler, Semi-Implicit Euler, Verlet and RK4 Energy Drift at Frame Rate ↗ Open standalone

Four identical springs are stepped with four different integrators at a chosen frame rate: explicit Euler, semi-implicit (symplectic) Euler, velocity Verlet and fourth-order Runge-Kutta, next to the exact solution. Change the spring frequency, the frame rate and the damping and watch explicit Euler gain energy and blow up while the symplectic methods stay bounded. Growth factors, conserved shadow energy and convergence orders are checked numerically.

⚙ Under the hood

Four identical springs are stepped with four different integrators at a chosen frame rate: explicit Euler, semi-implicit (symplectic) Euler, velocity Verlet and fourth-order Runge-Kutta, next to the exact solution. Change the spring frequency, the frame rate and the damping and watch explicit Euler gain energy and blow up while the symplectic methods stay bounded. Growth factors, conserved shadow energy and convergence orders are checked numerically.

Gaming MechanicsAgent BasedGame PhysicsNumerical IntegrationSymplectic EulerVerletRunge-Kutta

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)