Collision not working when standing still?

I tried that but it didn’t work. Actually, it partially worked, but not a 100%. Sometimes moving object still goes through character, other times it pushes character as expected. I don’t know why it still happens sometimes.