- Home /
[Solved]Is it possible to remove the green lines in the middle of a polygon collider2D.
In my 2D scene I have 5 objects. All of them uses 2D polygon colliders, but only the two of them with green lines in the middle of their collider don't work with some core mechanic of the game*. Is there a method to remove this green lines without reducing the amount of vertices to under 9?
*The problem is that even when i use Physics2D.IgnoreCollision the player still hits this lines.
Bad Collider
Good Collider
Answer by LeonardNS · Aug 09, 2014 at 07:59 PM
I just found a way to do it, or maybe at least. If i use a Edge Collider instead of a Polygon i get the effect i want. Wierd I have not thought of this method before.
Your answer
Follow this Question
Related Questions
Refreshing the Polygon Collider (2D) upon sprite change? 8 Answers
Raycasting not working on all sides? 1 Answer
Efficient generation of 2d polygon collider 0 Answers
Why Polygon Collider 2D changes when build? 0 Answers
Polygon Collider gone crazy 0 Answers