Closed maurovanetti closed 1 month ago
The documentation used to require that lists of vertices in PolygonComponent (and its subclass PolygonHitbox) should be in counterclockwise order. This is no more necessary because the implementation is robust: https://github.com/flame-engine/flame/blob/main/packages/flame/lib/src/geometry/polygon_component.dart#L122-L124
Moreover, the wording was a bit confusing (the example looks clockwise).
The paragraphs mentioning the vertex order were deleted altogether.
docs
///
examples
Good. I didn't realise those bits were wrong actually. Now I get what confused me in the first place!
Description
The documentation used to require that lists of vertices in PolygonComponent (and its subclass PolygonHitbox) should be in counterclockwise order. This is no more necessary because the implementation is robust: https://github.com/flame-engine/flame/blob/main/packages/flame/lib/src/geometry/polygon_component.dart#L122-L124
Moreover, the wording was a bit confusing (the example looks clockwise).
The paragraphs mentioning the vertex order were deleted altogether.
Checklist
docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues