Z-up conversion: raycasts