Hi here !
I created a mesh, like this:
fn example(
mut commands: Commands,
meshes: &mut ResMut<Assets<Mesh>>,
materials: &mut ResMut<Assets<ColorMaterial>>,
) {
commands.spawn(
(
ProgressDone,
MaterialMesh2dBundle {
mesh: meshes.add(Mesh::from(shape::Quad::new(Vec2::ZERO))).into(),
transform: Transform {
translation: Vec3::ZERO,
..Default::default()
},
material: materials.add(ColorMaterial::from(Color::GREEN)),
..default()
},
)
);
}
I don't know how I should Query that to be able to modify the shape. For example, from shape::Quad::new(Vec2::ZERO)) to shape::Quad::new(Vec2::new(100., 10.)))
How should I write my query to be able to do that ?