mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Utilise new method for 2d circle example. (#15022)
# Objective Replaced the existing instantiation of the 2D Circle in the 2d_shapes.rs file with the `new` method. - Ensures consistency in instantiating 2D primitive shapes in the examples. ## Solution Replaced the existing instantiation of the 2D Circle in the 2d_shapes.rs file with the `new` method. - Ensures consistency in instantiating 2D primitive shapes in the examples. ## Testing - None: Should be straight-forward enough to not warrant a test (I will eat my words if I am wrong). ---
This commit is contained in:
parent
8a64b7621d
commit
323aa70e3c
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ fn setup(
|
|||
commands.spawn(Camera2dBundle::default());
|
||||
|
||||
let shapes = [
|
||||
Mesh2dHandle(meshes.add(Circle { radius: 50.0 })),
|
||||
Mesh2dHandle(meshes.add(Circle::new(50.0))),
|
||||
Mesh2dHandle(meshes.add(CircularSector::new(50.0, 1.0))),
|
||||
Mesh2dHandle(meshes.add(CircularSegment::new(50.0, 1.25))),
|
||||
Mesh2dHandle(meshes.add(Ellipse::new(25.0, 50.0))),
|
||||
|
|
Loading…
Reference in a new issue