Camera limits for box room

Is it possible to limit the camera position in xyz coordinates? For example I have a box shaped room and I don’t want the camera to go outside the room. Is there code for setting a min/max for x/y/z?

I’m afraid not, camera limits are always defined in terms of an orbit model:

You can create your own restrictions using our Viewer API though: