Hi there!
I'm doing some tests to practice on platformers, and I'm stuck on something: I have a very simple scene with a Tilemap and its physic layer, a player which is a CharacterBody2D, and a box which is a RigidBody2D.
All I want to do is push this box with my player.
The player and the box are correctly positioned on the floor of the Tilemap, and when I instantiate several boxes a few centimetres from the floor, and they fall, I can see that they collide with each other. If I place my player underneath the falling boxes, it's pushed back by the boxes.
Sometimes when the boxes are tangled, and I jump on them with my player a few times, they move and reposition themselves correctly.
But when the boxes are on the ground and I move towards them, nothing happens (the player is blocked by the box, but the box doesn't move forward).
I move the Player with move_and_slide(), and its motion mode is "Grounded".
The box has no script attached, it's just a RigidBody2D with a sprite and a CollisionShape2D.
I've tried fiddling with the RigidBody2D parameters, but nothing works.
Could you help? Thanks in advance!