Hello! I hope you're having a nice day.
I'm making a small prototype build for a project idea I have in mind(I'm only 5 minutes in) and I have a shipping container(StaticBody2D), with a Rect CollisionShape2D and a sprite.
I have basic code to move a player(kinematicBody2D) around (screenshot attached), he has a circle CollisionShape2D. I have only coded movement, no collision code aside from "moveandslide".
It works mostly well, except that if I run into the container, I get stuck onto it, and I can only move along the side of it(as if it were a rail, and i was a curtain) and not away from it. I can only detach from the container by jiggling at the corner of the container.
Where is my error in my program that causes the shape to be stuck inside the other shape, unable to escape?
Kindest Regards.
https://imgur.com/a/G4CzfdO