ive been using several individual gameobjects for building levels (floors + walls. etc), but recently have been looking into tilemaps, as it would be a lot more efficient.
I followed tutorials that say to put a tilemap collider, then a composite collider, but I've run into an issue where OnCollisionEnter2D does not trigger when hitting a wall while grounded. this is a problem for things like my enemy scripts that rotate upon colliding into a wall, even when using Collision2D.GetContacts to see if the collision Vector2.left or right. i can see that it is because it is all the same collider, it doesn't register this new collision.
how would I go about seperating wall collisions with floor collisions?