Learning 3D: how to flip your helicopter