How can I make a GLTF model (a corridor model) rigid, so that anything inside that does not cross the wall and come out?

This is the corridor.

On both sides are walls. I’m using PointerLockControls plus WASD keys to control the velocity and in turn move the camera like:
controls.current.moveRight(-velocity.current.x * delta);

I thought maybe If i can attach a physical rigid body to camera, move it along with camera giving a FPS kind of view, and also make the walls of these model somehow rigid.