Question related to camera movement

how to restrict the position of camera in babylon js (means camera will not go ups and down like that)

You can set upper and lower limits on alpha/beta and radius: ArcRotateCamera | Babylon.js Documentation