godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.11k stars 20.2k forks source link

Miter limit should be parameter with default value, not hardcoded. #29886

Open ghmart opened 5 years ago

ghmart commented 5 years ago

Godot version: 3.2

Issue description: When using offset_polygon_2d with JOIN_MITER join type it cuts nesessary geometry sometimes:

ml

On the left is what is needed. On the right is what offsetting polygon gives.

Please, add this! Original library allows miter limit to be set.

akien-mga commented 5 years ago

I think that's what #29758 does (@Xrayez)

ghmart commented 5 years ago

Yes, that's what #29758 does. My apologies. Thought my question on forums were missed and made this issue.

Xrayez commented 5 years ago

@ghmart Yeah, no problem, it just makes it more clear what should be done.