Collision with walls

What is the best way to check a collision between a wall (3d model) and my cam…? should I compare the location of the cam and the location of the wall or what’s the best method?