goostengine / goost

A general-purpose, extensible and customizable C++ extension for Godot Engine.
https://goostengine.github.io/
MIT License
481 stars 18 forks source link

Fix vertices generation order in `GoostGeometry2D.regular_polygon()` #133

Closed Xrayez closed 3 years ago

Xrayez commented 3 years ago

Makes it "mathematically correct", the first vertex starts at Vector2.RIGHT direction. This also removes the need to generate points reverse to fix orientation.

The maximum number of points in GoostGeometry2D.circle() is unlimited now. The limit was hardcoded according to Godot's polygon vertex count limit for rendering, but it can be configured in fact (via rendering/limits project settings).