How to make a object on floor non solid

I have a weapon on the floor with ridgedbody and when I walk to it it gets in my way.
I want it so I can walk through it and not fall through the floor.

Right now I have a mesh collider so it doesn’t fall through the floor. How would I make it so it wont fall through the floor but I can walk through it?

Use Physics.IgnoreLayerCollision (1

Put weapon , floor and player in different layers (for instance 8,9 and 10 respectively), and set weapon ignore collision with player. Physics.IgnoreLayerCollision(8,10,true);