Gizmos::arc_2d
uses clockwise angles for some reason
#13614
Labels
A-Gizmos
Visual editor and debug gizmos
C-Bug
An unexpected or incorrect behavior
C-Usability
A simple quality-of-life change that makes Bevy easier to use
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Bevy version
Current development branch.
What you did / what went wrong
A wonderful PR author ran into this weird mismatch while writing gizmo code: the
arc_2d
method expects a clockwise angle, while the angle supplied for theprimitives_Nd
method is counterclockwise. As far as I can tell, this may be literally the only place in the entire codebase that uses clockwise angles, which seems needlessly confusing. The method could just use counter-clockwise angles like everything else.The text was updated successfully, but these errors were encountered: