HI there, I’ve got a player and a wall with colliders attached. I have also attached a script to the player that uses Physics2D.BoxCast for the collision detection. The problem is that the collision happens before both collision boxes actually touch so there is a gap between the wall and player.
Here is the problem, the player wont get any closer to the wall, also you can see the box colliders here
Also here is the code that casts the BoxCast on the x direction
thank you all in advance.