For my computing project, I am creating a projectile simulator but I cant seem to get my head round the air resistance. I tried by working out the horizontal and vertical velocity by solving it (vertically and horizontally giving me two equations):

- $dv/dt = -cv^2$ (horizontal)
- $dv/dt = -cv^2 - g $ (vertical)

where c is 1/2 (drag co x density x cross sectional area).

But after doing the integrals and finding the equation it doesn't seem to be working as I want them to...

Sorry for the bad formatting.. (Ill try to excuse myself by saying Im new) and thanks for any help