Example Code

This is an examples of how the velocity of an object would be determined given
acceleration = force / mass
velocity += acceleration * time_step
position += velocity * time_step

last_acceleration = acceleration
position += velocity * time_step + ( 0.5 * last_acceleration * time_step^2 ) new_acceleration = force / mass avg_acceleration = ( last_acceleration + new_acceleration ) / 2 velocity += avg_acceleration * time_step


*code provided by Burak Kanber