so i did freez the x and y but that made it worse since i cant move anymore i did my box colider biger but thats a bad idea since it dousnt match with my player what do i do
Did you tried to change Collision Detection in Rigidbody from Discrete to Continuous?
Oh sorry I forgot to delete this question I asked a couple of youtubers how to fix this so I think you have to lock y or x or smt to fix this problem On rigid body2d