I want to create dynamic boxes

Godot Version



I am creating a top down shooter 2D game and want to program a dynamic box. I tried many tutorials but nothing worked until now. It’s something related to both physics and programming.

Create a rigidbody, add sprite/collision and set the gravity of rigidbody to 0

I tried that, however the enemies can move it and player’s character can’t. I want the player can push it too.

Can you show the player’s code? Maybe their collision mask and layers?

I think it is the problem in your layers, you can watch this video