1
Support / Edge Collider > Polygon Collider SCRIPT
« on: November 03, 2015, 09:48:05 am »
I was giving 2DtoolKit a spin, long been a fan, but now Unity Tilemap is looming.
I was wondering if the solid collider issue has been addressed.
Seems not (as far as I can tell).
Drop this script on your tile layers, it'll do the job. It also has a "convert to trigger" setting if you want the polygon to be a trigger (ladders, water, doors etc.)
Almost certainly doesn't work with holes, I'll try and fix it up if you let me know any problems, or feel free to edit and PR!
https://github.com/HawkenKing/Edge-collider2D-to-Polygon-collider-2D
I was wondering if the solid collider issue has been addressed.
Seems not (as far as I can tell).
Drop this script on your tile layers, it'll do the job. It also has a "convert to trigger" setting if you want the polygon to be a trigger (ladders, water, doors etc.)
Almost certainly doesn't work with holes, I'll try and fix it up if you let me know any problems, or feel free to edit and PR!
https://github.com/HawkenKing/Edge-collider2D-to-Polygon-collider-2D