2d colliders not working with tilemaps

hi all!

I’m probably doing something very wrong but i don’t get the colliders to work for some reason :\

I have a player with a dynamic 2d rigidbody and a 2d capsule collider.
2 tilemaps, the “floor” one and another one with certain tiles painted to work as walls.
This second tilemap has a tilemap collider 2d. And i added a dynamic rigidbody to test but i think is not required?

Then I have a tree on top of that tilemap that has it’s own collider and a rigidbody.
My characer ignores all of these colliders as if they don’t exist :frowning:

You have freeze position checked, so that might be the problem. Uncheck them and try again.
To be able to collide with a tilemap, you need to add tilemapcollider2d to the tilemap, so make sure you have it set up properly.
If that doesn’t work,
Make sure:-

  • that both of your player and tree are on same layer.
  • both have 2d colliders on them and none of them are triggers
  • try changing the collider shapes, i.e, box2d, circle2d, etc.
  • try setting collision detection to continuous for both.

so it was the freeze position. I disabled it for X and it works now. thanks!