If you made this game in Unity, you just need to change "collision detection" of your RigidBody2D component from Discrete to Continuous. :)
Oh are you sure! im going to try it out