#Draw lines with main branch bevy?

22 messages · Page 1 of 1 (latest)

night elbow
#

I tried bevy_prototype_lyon, bevy_prototype_debug_lines, bevy_polyline.
They don't work with the main branch.
Is there another method to draw lines?

#

Draw lines with main branch bevy?

delicate ivy
#

bevy_prototype_lyon's main branch targets bevy main and it was just updated yesterday. have there been breaking changes since then?

night elbow
#
error[E0277]: the trait bound `ShapePlugin: Plugin` is not satisfied
   --> src/main.rs:10:21
    |
10  |         .add_plugin(ShapePlugin)
    |          ---------- ^^^^^^^^^^^ the trait `Plugin` is not implemented for `ShapePlugin`
    |          |
    |          required by a bound introduced by this call
    |
    = help: the following other types implement trait `Plugin`:
              AnimationPlugin
              AssetCountDiagnosticsPlugin<T>
              AssetPlugin
              AudioPlugin
              CameraPlugin
              CameraProjectionPlugin<T>
              ColorMaterialPlugin
              Core2dPlugin
            and 40 others
note: required by a bound in `bevy::prelude::App::add_plugin`
   --> /home/USER/.cargo/git/checkouts/bevy-f7ffde730c324c74/3aaf746/crates/bevy_app/src/app.rs:806:12
    |
806 |         T: Plugin,
    |            ^^^^^^ required by this bound in `bevy::prelude::App::add_plugin`
#

When I .add_plugin(ShapePlugin)

#

Which is odd. Since it does impl Plugin.

hasty marsh
#

maybe try cargo update?

night elbow
hasty marsh
#

what does your Cargo.toml dependencies look like first

night elbow
hasty marsh
#

damn, i dont think those patch.crates-io are necessary

#

for bevy_prototype_lyon you can use git as is

#

for bevy_prototype_debug_lines you have to use the branch bevy-main. same for bevy_tweening, except the branch is bevy_main.

#

bevy_polyline has its own revision in main, so you'll have to patch it

night elbow
#

Erm, bevy_prototype_lyon is still errors, with & without crate patches.

hasty marsh
#

have you tried cargo clean then cargo update

delicate ivy
#

bevy_tweening uses bevy 0.8

#

except in their bevy_main branch, but that is very out of date

night elbow
#

That's odd.

#

Reallly odd. Changed it to
bevy = { git = "https://github.com/bevyengine/bevy", branch = "main"}
Now it works.