Original Post
Im writing a physics library and I want it to support both continuous projectile paths and segmented paths (just takes a function pointer that returns the force at some time t). The continuous projectile algorithm started off easy enough. instead of: a(t) = F/m v(t) = Ft/m + v0 x(t) = Ft^2/(2m) + v0t + x0 the equations become: a(t) = F(t)/m v(t) = int(F dt)/m + v0 x(t) = int(int(F dt) dt)/m + v0t + x0 where int(F dt) is the integral of F with respect to t this works fine for any F(t) where the only variable in F is t. However, when I tried to use the simple air friction force equation, F=-b*v=-b*dx/dt, I ran into some problems. I solved for y using the differential equation: int(F dt) = -b*x y'(t) = x(t) y'(t) = y/m + v0t + x0 I got that x = m*v0/b which is a constant. I know this is wrong but I did the math write and plugging x back into the equations works. I think I might have the force function wrong because if G(t) = int(F dt) then G(0) should be 0 because v(0) = v0. However G(t) in this case isnt 0, its -b*x.