Arkit Camera Collider

Hi there

Is it possible to add a collder onto the camera so that the user(view on phone) cannot enter a box created in scenekit.

I have created a room - wth a doorway with an outer box with occlusion set to one so that it appears as if there is portal that the user can enter. Once inside you can view the real world though the doorway or windows etc. Portal effect. This is as then planted onto a plane detected by arkit.

But I want to stop the viewer moving through the walls. Looks great as a video of a portal but not very convincing as a game.

Thanks