Tilemap Collider problems
So, a little while ago, I started making a top-down game using Unity's 2D system and it was all going well until I decided to put walls and objects in the game. I have a feeling that the issue is in the Tilemap Collider 2D component because I can collide with walls but not objects on the same tilemap.
Here are some pictures of what I mean:
As you can see, it hits the wall and stops.
This next image shows the player walking through a table that's on the same tilemap and shares the same collider:
I would just like to know if anybody has a way to fix this because I've been playing with everything from the physics system to player controllers and everything in-between.
The game window isn't the best window for the forum to help you debug, please show the scene view with the inspector visible in the screenshot so we can confirm if things are setup correctly.
If this table or whatever is on the SA$$anonymous$$E tilemap that the walls that are working with colliders are, then it should work, the documentation states this:
The Collider shapes generated for each Tile in the Tilemap depend on the desired Collider type set in the Tile Asset.As you add or remove Tiles to or from the Tilemap component, the Tilemap Collider 2D updates the Collider shapes during LateUpdate.
Your answer
Follow this Question
Related Questions
Circle Collider2D Stuck ob Box Collider2D at the corner :( 0 Answers
Collision between two 2D objects. 1 Answer
2D collision not working 0 Answers
Ignore collisions with water if ground above water 0 Answers