Nilirad/bevy_prototype_lyon

draw rect from uper left to bottom right , instand of from center+radius

pyweeker opened this issue · 2 comments

Hello,
how to draw rect from x1y1 to x2y2 , i'd like to draw this here :
https://github.com/jonchisko/bevy_dragselect_example

Something like

    let myrect = shapes::Rectangle {
        extents: Vec2::new(100.0, 200.0),
        origin: RectangleOrigin::TopLeft,
        ..Default::default()
    };

thank you !