mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Add the annulus shape to the 2d_shapes
example (#12742)
# Objective - Depends on #12734. Since adding the `Annulus` primitive shape (#12706, #12734), the `2d_shapes` example has become outdated. ## Solution This PR adds the annulus shape to the `2d_shapes` example: ![image](https://github.com/bevyengine/bevy/assets/37378746/e620362d-bec6-4660-bf6e-d70babff8179) --- ## Changelog ### Added - `Annulus` shape to the `2d_shapes` example (~~as an added bonus, the example now features Newton's [ROYGBIV](https://en.wikipedia.org/wiki/ROYGBIV) rainbow palette ^^~~ no it doesn't, but one can shoehorn..)
This commit is contained in:
parent
06738bff63
commit
017ffc5a7b
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ fn setup(
|
|||
let shapes = [
|
||||
Mesh2dHandle(meshes.add(Circle { radius: 50.0 })),
|
||||
Mesh2dHandle(meshes.add(Ellipse::new(25.0, 50.0))),
|
||||
Mesh2dHandle(meshes.add(Annulus::new(25.0, 50.0))),
|
||||
Mesh2dHandle(meshes.add(Capsule2d::new(25.0, 50.0))),
|
||||
Mesh2dHandle(meshes.add(Rectangle::new(50.0, 100.0))),
|
||||
Mesh2dHandle(meshes.add(RegularPolygon::new(50.0, 6))),
|
||||
|
|
Loading…
Reference in a new issue