Answers for "C# Calculate Edge Collider for Line Renderer"
http://answers.unity.com/questions/984046/c-calculate-edge-collider-for-line-renderer.html
The latest answers for the question "C# Calculate Edge Collider for Line Renderer"Answer by zach-r-d
http://answers.unity.com/answers/984403/view.html
You can set the points of an edge collider by assigning a Vector2[] to EdgeCollider2D.points. It looks like keyVertices pretty much has everything you need already, just need to convert to an array of Vector2s.
Remember to use transform.InverseTransformPoint to go from world coordinates to local coordinates if necessary!Thu, 11 Jun 2015 08:15:20 GMTzach-r-d