- Home /
Box Collider 2D and Hollow collision.
Hello,
I have an island that is made out of tiles. I have made the borders of the island with different tiles. https://i.gyazo.com/3ad6d46eecff178e91cb2cc3fc46a8ac.png
I would like to add collision only to the borders of my island, so that everything inside is hollow. I read that Mesh Colliders should be used for something hollow, however I'm not sure how to make Mesh Colliders collide with my player, who uses Box Collider 2D. They just go through eachother without colliding. https://i.gyazo.com/4dca26ce85548a5a497fedfe5bd059ee.png
Border inspector: https://i.gyazo.com/ae70b92a8b9826c310f1ee10013aeecc.png Player inspector: https://i.gyazo.com/95e76943646285e00e725fceefa23f09.png
I'm not sure how to get them to collide, any help would be appreciated. Cheers!