Skip to content

Commit e964849

Browse files
StephenTurleymockersf
authored andcommitted
Changed the order of arguments for the Arc gizmo docs (bevyengine#12854)
Just updating docs for the arc gizmo so that the argument documentation matches the order of the function arguments. Also added docs for the color argument. # Objective - Improve docs ## Solution - Moved the radius argument to the end of the argument list to match the function --- ## Changelog > N/A ## Migration Guide > N/A --------- Co-authored-by: François Mockers <francois.mockers@vleue.com>
1 parent ffdb5d9 commit e964849

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/bevy_gizmos/src/arcs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> {
1818
///
1919
/// # Arguments
2020
/// - `position` sets the center of this circle.
21-
/// - `radius` controls the distance from `position` to this arc, and thus its curvature.
2221
/// - `direction_angle` sets the clockwise angle in radians between `Vec2::Y` and
2322
/// the vector from `position` to the midpoint of the arc.
2423
/// - `arc_angle` sets the length of this arc, in radians.
24+
/// - `radius` controls the distance from `position` to this arc, and thus its curvature.
25+
/// - `color` sets the color to draw the arc.
2526
///
2627
/// # Example
2728
/// ```

0 commit comments

Comments
 (0)