Integration Techniques for Physics Simulations

Simon has made a visual about what he calls “three different ways to make a physics simulation”:

Blue: Modified Euler Integration (aka Backward Euler Integration);

Green: Euler Integration (aka Forward Euler Integration);

Red: Kinematic Equations;

In this situation, the kinematic equations give the same results as Runge-Kutta integration.

Simon’s Code: https://editor.p5js.org/simontiger/sketches/Ftv4vZyjm

Simon discussing the idea with The Coding Train’s Daniel Shiffman on Discord:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s