Added function to calculate projectile displacement and velocity in vacuum