- Home /
Question by
Starleg2 · May 26, 2018 at 06:55 PM ·
collisioncollidertilepolygon collider 2drandom gen
Efficient generation of 2d polygon collider
I have made a randomly generated map of tiles that are under one chunk gameobject. The tiles are in an array in order of bottom to top, left to right. Each tile has a Boolean whether they can be collided with or not called canCollide. What I'm wondering is how to efficiently generate a path of vertices for a polygon collider 2d to make all the dark tiles collidable. This doesn't need to be one path but I have already tried to make each tile a separate path and that methods makes the map take forever to load.
unitycollisionissue.png
(217.9 kB)
Comment