Simulates a projectile's motion by integrating acceleration twice.