Hello,
I have an enemy game object that turns around whenever it hits a collider. The AI script worked properly when I had the original BoxCollider2D being used as my collider, however, I learned about tilemaps and switched to building my scenes with it.
However, the enemy now runs into the wall and does not turn around. I ran a Debug.Log and didn’t get any messages, so I’m not sure what the problem could be. I’m using Tilemap Collider 2D along with a static Rigidbody2D and Composite Collider 2D to make the ground one giant collider.
Does anyone know what else I could test for?