Hello Guest

Author Topic: Edge Collider > Polygon Collider SCRIPT  (Read 3683 times)

hawken

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
  • developer
    • View Profile
    • hawkenking
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
« Last Edit: November 03, 2015, 11:11:05 am by hawken »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Edge Collider > Polygon Collider SCRIPT
« Reply #1 on: November 03, 2015, 11:28:57 am »
Hiya,

No the polygon stuff hasn't changed. Most resources is spent on support at the moment, and writing that and debugging this feature will take far more time than I have available for the project. Its easy for trivial cases (rectangular  only, etc) but once you start throwing everything that is possible in tk2d it becomes a VERY complicated and will take a substantial amount of time to code.

I can however, make the collider generator a plugin, so if you write your own you'll be able to maintain it without messing with tk2d code and still maintain tight integration. Let me know if thats something you'd like to have.