Can't make player collide with tilemap

Godot Version

Godot Engine v4.5.1.stable.nixpkgs.f62fdbde1 - https://godotengine.org
Vulkan 1.4.318 - Forward+ - Using Device #0: AMD - AMD Radeon RX 6700 XT (RADV NAVI22)

Question

I can’t seem to make the player collide with the TilemapLayer. The tilemap layer itself has all layers and masks checked, and the player itself has a polygon2d shape and collision. The player also has all of the layers and masks enabled (tried with only the first one as well), and it still doesn’t work. It is probably something very dumb, but still, I ask if some good soul could help me. This is supposed to be just a fast prototype, so if it doesn’t work, I’ll just use rectangles and thats it.

Thanks in advance

If you don’t edit the layers and masks at all, they should both collide with no extra work on your part. I suspect that whatever you’ve done you are preventing them from colliding. Gonna have to see what you set them to. Also, you need to paint the physics layer onto each tile you want affected.