Collision detection not working + objects passing through each other (3D)

I have been looking around for hours and I cannot find a fix or the cause of the problem. Anyone, please leave reasons why this could be happening, it is 3D by the way. I will try to answer any questions.

Collision detection isn’t working whenever another object collides with that object, only some objects pass through this object. The ones that pass through are moving.

Make sure that the object’s collider isn’t set to isTrigger. Make sure that at least one of the objects involved in the collision has a rigidbody attached to detect collisions. Check that the layers are colliding in physics. Hope this helps.

Dear @ Just_a_Floating_Eye_YT
…( 1 ) Collider Must not set to is Triger… ( 2 ) rigidbody Must be attached to Player

Make sure all of the gameobjects have colliders assigned to them (box collider, capsule collider etc.) and as others said it must not be set to isTrigger. Also the gameobjects (or at least one of them) should have a rigidbody. If you don’t need gravity you can disable it from the rigidbody.
Also check that there is nothing funny going on with the tags or layers with the gameobjects and the scripts. For example if you have gameobject with a tag “box” but you have determined that you only want to collide with “ground” that could be a problem.
Good luck.