kinda new to this but trying to make a free roam game
Hi @DemonlordIV and welcome,
If you create a new Playcanvas project using the Model Viewer template you can check the default orbit-camera script how it implements such a restriction e.g. on up/down camera movement.
oh thanks um will that template allow free roam and enemies?
No that template demonstrates an orbit camera, the rest you will have to implement yourself with scripts
oh ok