Hi, I'm trying to make a game on which you can push boxes to solve puzzles, is a 2D platformer basically, but I found a problem.
When a box (that is actually a kinematic body) is between two static bodies it gets stucked in the middle(No matters which function I use, is the same behaviour with moveandslide() and moveandcollide()).
I tried with a rigid body and it simply slides between the static bodies, totally different than the kinematic, and I would like to replicate that behaviour but using a Kinematic body.
For the type of game that it is, I need to use a kinematic body.
There are the steps to follow if you want to replicate it, I'm using the 3.0.6 stable release.
First of all create a project and add two static bodies they can be a 32x32 image, if you want you can stretch it in the Y axis to give a better effect, separate them exactly 32 pixels in the X axis, that is the space on where the kinematic body should move.
Then create a kinematic body with a 32x32 image, and a collisionShape2D (16x16) and put the kinematic body between the two static bodies, add a script to the kinematic body, one that only has in the process function moveandslide(Vector2(0, 50))
The final scene should looks like the next one:
After all the process you will see the problem, but replace the kinematic body with a rigidbody and you will see how it slides between the static bodies.
And that's all, I hope somebody can help me.