Velocity and height calculations