Collision issues with game object

Hey guys I have put box collidors on my buildings yet my game object which has a camera attached to it that can pass straight through the building. I’m not the most experienced person with unity so it could be something basic. Please help

Your game object must contain the rigidbody component to detect the collision needed to prevent it from passing through buildings.