Custom Physics Wall Clipping Problem

Hopefully this is a general enough problem. I’ve got some simple custom physics to suit my needs, but the problem is my velocities will sometimes project myself into a wall. At that point I’m either stuck or experience undesired effects.

Is there a way to prevent the clipping? Some way to predict? Like detecting the collision WILL occur based on speed and then take action, so that I am not inside a wall on the next frame? I’m stumped. Thanks for helping a beginner! I know there’s someone more brilliant out there :smiley: