bevy
bevy copied to clipboard
More gizmos builders
Objective
- Add GizmoBuilders for some primitives as discussed in #13233
Solution
-
gizmos.primitive_2d(CIRCLE)andgizmos.primitive_2d(ELLIPSE)now returnEllipse2dBuilderaswell. -
gizmos.primitive_3d(SPHERE)andgizmos.sphere()now return the sameSphereBuilder.- the
.circle_segmentsmethod on theSphereBuilderthat used to be returned by.sphere()is now called.segments - the sphere primitive gizmo now matches the
gizmos.spheregizmo
- the
-
gizmos.primitive_2d(ANNULUS)now returns aAnnulus2dBuilderallowing the configuration of thesegments - gizmos cylinders and capsules now have only 1 line per axis, similar to
gizmos.sphere
Migration Guide
- Some
gizmos.primitive_ndmethods now return some or different builders. You may need to adjust types and match statements
It looks like your PR is a breaking change, but you didn't provide a migration guide.
Could you add some context on what users should update when this change get released in a new version of Bevy?
It will be used to help writing the migration guide for the version. Putting it after a ## Migration Guide will help it get automatically picked up by our tooling.
@lynn-lumen once CI is green and merge conflicts are resolved I'll merge this in.