Skip to content

Commit

Permalink
Replace Quad with Rectangle in asteroids example
Browse files Browse the repository at this point in the history
- Bevy 0.13 deprecated bevy_render::mesh::shape in favor of bevy_math::primitives
  - https://bevyengine.org/news/bevy-0-13/#primitive-shapes

Signed-off-by: Nullicorn <[email protected]>
  • Loading branch information
TheNullicorn committed Feb 22, 2024
1 parent 9d2323c commit 19d55e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/asteroids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn expand_asteroids(
),
});

let quad_handle = meshes.add(Mesh::from(shape::Quad::new(Vec2::new(100.0, 100.0))));
let quad_handle = meshes.add(Mesh::from(Rectangle::from_size(Vec2::new(100.0, 100.0))));

asteroid.spawn(MaterialMesh2dBundle {
mesh: quad_handle.into(),
Expand Down

0 comments on commit 19d55e2

Please sign in to comment.