How to limit movement of camera by some geometry?

Here an example : https://www.babylonjs-playground.com/#MV90AQ#1