My Character is floating slightly above my box colliders for my Tilemap

Hi I’m new to Unitiy’s TileMap system but I’ve run into a weird problem vie to set up my box colliders for my player and the ground but the player seems to be floating above the ground I tested it again with a plank box sprite and the same thing is happening I’m not sure why this is happening I’ve been looking everywhere for a solution but nothing has turned up can anyone help me?182191-problem.png

1 Answer

1

if your using tile maps put the ground tiles on a seperate layer and use a tile map collider2d on the ground tiles

Ok ill try that thanks but I'm already using tilemap collider2d

when you say put the tiles on a separate layer how would I do that with the order in layer function within tilemap render?

So I made a new project to test if this would happen if there was no tilemap with 2 boxes one as the player and the other as the ground and it does is this just something that happens in unity where 2 objects don't touch and I've never noticed?