draw rect from uper left to bottom right , instand of from center+radius
pyweeker opened this issue · 2 comments
pyweeker commented
Hello,
how to draw rect from x1y1 to x2y2 , i'd like to draw this here :
https://github.com/jonchisko/bevy_dragselect_example
riverfr0zen commented
Something like
let myrect = shapes::Rectangle {
extents: Vec2::new(100.0, 200.0),
origin: RectangleOrigin::TopLeft,
..Default::default()
};
pyweeker commented
thank you !