RigidBody2D slides into ground/walls when jumped on or pushed

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Liam Steyn

I’m making a game in which you spawn a block and then you use it to get to the next level. The block is a RigidBody2D so it can be pushed around, but when I push it up against a wall then it gets stuck in the wall. Is there a way to prevent this with code or in the nodes inspector menu?