Quote:
Originally Posted by Ether
Assuming that X0 and V0 are given, and assuming that the update period dt is short enough that the acceleration is accurately approximated as a linear function of time, then the position is given by:
X1 = X0 + dt*V0 + dt2*(a1 + 2*a0)/6
X2 = X1 + dt*V1 + dt2*(a2 + 2*a1)/6
.
.
.
Xn = Xn-1 + dt*Vn-1 + dt2*(an + 2*an-1)/6
|
I forgot to post the computation for Vn:
Vn = Vn-1 + dt*(an+an-1)/2