how to stop camera collider rotate

Hello Bros
I have a problem that I have a camera.My game object have inside it.Camera have rigid body and collider.I move the camera with joystick and when it is collipse with wall,the camera rotate."I not want to rotate camera when it collapse with other.How to fix it. :cry: please help me

“before collision”

before collision

“after collapsion with wall it rotate as”

please help me . :cry: