Having problem with moving a ball or cube inside a round pipe

When I create a pipe in blender and import that object in unity, I tried to move a cube inside of it. I created that cube also in blender. I placed that cube inside the pipe, added rigidbody and collider to the cube and added mesh collider to the tube.
when I hit play, the cube suddenly popped up outside the pipe. maybe its a collider problem. because it popped exactly outside the pipe.
please give me any solution, that i can move any object inside 3D pipe/ organ etc

Is the mesh collider set to “Convex”?

yes. it is set to convex

Then that is the reason. When set to convex, the entire mesh is treated like a solid object with a convex hull, so everything inside with a rigidbody gets pushed out. The pipe needs a hollow part inside. If you uncheck “Convex”, the actual mesh is used for collision, with holes and all. This only works on objects without a rigidbody or with the rigidbody set to “Kinematic”. But if the pipe doesn’t need to react to physics and only acts as a static collider, it will work.