Worked out a formula to turn according to xv and yv to make the player act as it is jumping then diving.