Motion is change of position x with a certain rate of change as velocity v according to the code
- x = x + v* dt;
where dt is a time step. Watch and play with the pedagogical game on the left, modify and run again!.
This code expresses mor generally any type of change of a quantity x with a certain rate of change v over a time step dt.
The code is interpreted as
- x_new = x_old + v*dt