Polyline sharp angle issue

Avatar
  • updated
  • Under Review

Hi Freya, thanks for the great asset. 

I have been using Polyline to create a pen tool and it works great, however I have noticed a bug when you create a sharp angle between consecutive points. I have attached a gif showing the issue:

Image 112

And here are my component settings:

Image 113

I would like to use the Rounded join type because it looks great as a pen, but the issue doesn't seem to happen on simple joins.

Thanks heaps,

Nick

Reporting a bug? please specify Unity version:
2020.1.4f1
Reporting a bug? please specify Shapes version:
2.3.0
Reporting a bug? please specify Render Pipeline:
Avatar
Freya Holmér creator

The upcoming update has a partial fix to this issue - preventing the very large overshoot (though not fixing all other problems)

Avatar
nick russell

No, I never found a solution to this unfortunately. 

Avatar
torfi asgeirsson

Hey, just curious if you found a workaround for this other than using simple joins as I'm having this same problem.

Avatar
nick russell

Hi Freya, thanks for the update. I will see if I can work around the issue in the meantime. 

Avatar
Freya Holmér creator
  • Under Review

this is unfortunately a hard problem to solve, and the solutions will likely be pretty computationally expensive if we end up having one. there might be a way to solve this case in a performant manner, but I haven't looked into it much yet because my priority has been real-time use, rather than maximum quality lines with no edge cases left. Anyway, maybe, is my answer, currently low priority!