Hi, I have a problem with my player. Sometimes a bug occurs where my player gets stuck on other objects (rectangles). My player, as shown in the code, moves forward and the gravity of the player can be changed by touch. The bug sometimes occurs when my player hooks onto the corner of a square or rectangle. I used toggle_physics_debug to see how I could fix it. I tried to change the collisionobject values to see if this could resolve the bug, but it didn’t (I was changing values such as Friction, Restitution, etc.). I also tried to modify the code to push the player a little bit if a collision occurs, but still nothing. I even tried to add little spheres on the corners of rectangles because I thought my player could get stuck on the “sharp corners” of the rectangle, but still nothing. I have attached screenshots of my player.script, screenshots of my game with toggle_physics_debug enabled, and also how my player and rectangle look. My game is live on the Google Play. I will also attach the link to the game so that you can see more about how my game looks and have better context. You don’t have to download the game (it contains ads), but there is a short video which can give you more or less an idea of how my game looks. The bug occurs not very often, but when it does, it’s Game Over for the actual player who plays the game. I am out of ideas on how to fix it, so I am asking for ideas on how to resolve this issue. Sorry in advance if this is some kind of dumb/easy-to-resolve bug, but I have no more ideas.
Link to the live game on Google Play: [https://play.google.com/store/apps/details?id=com.Smiler.GravityPlatformer](https://Gravity Platformer)