collision problem of objects

I have two objects, one of them has a rigidbody. The other has only a collider. When the object with the collider moves with commands and hits the rigidbody object, it often gets into it. Why could this problem be caused?


  1. You have to make sure both the objects should have collider and atleast one of them should have rigidbody

2 if no. 1 is satisfied for you make sure none of the colliders on any object has isTrigger checked

  1. If still none of above methods work (which should not happen) go to rigidbody and under collision detection choose continuous , otherwise check if there is a scripting error turning on or off the colliders