LineRenderer Collisions (that support texture alpha)
Hi, I made a system to draw brush strokes (LineRenderers w/ some width + stretched texture) that generate a PolygonCollider2D for them.
The texture is a brush that has arbitrary alpha along it's edges:
My problem is that the PolygonCollider2D now matches the LineRenderer mesh, but since the texture has alpha - the collision box is too big (A bit hard to see cause of the background, but the collider is noticably wider at the end, as well as somewhat wider at the start)
I've searched for solutions to similar problems but it seems that all of them either use LineRenderers without textures/alpha, or talk about SpriteRenderer collisions and automatic PolygonCollider2D generation (doesn't work with LineRenderer, I checked)
Your answer
Follow this Question
Related Questions
2D Collision 0 Answers
map.GetTile() returning null in onTriggerEnter2D 1 Answer
Is there a better way to fill an image[not circle or square fill]? 0 Answers
OnCollisionEnter2D issues in Unity 5.2 1 Answer
Compatible collision constraint methods 0 Answers