It seems you can test cameraDirection and cameraRotation: https://www.babylonjs-playground.com/#UNB24W#13
cameraDirection
cameraRotation