Skip to content

Commit

Permalink
dependency bevy made dev and replaced with bevy_math and `bevy_re…
Browse files Browse the repository at this point in the history
…nder`.
  • Loading branch information
salam99823 committed Nov 11, 2024
1 parent 8b12b5e commit d2079cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ avian2d = ["dep:avian2d"]
rapier2d = ["dep:bevy_rapier2d"]

[dependencies]
bevy = "0.14"
bevy_rapier2d = { version = "0.27.0", optional = true }
avian2d = { version = "0.1.0", optional = true }
edges = { version = "0.3.4", features = ["bevy"] }
thiserror = "2.0.3"

[dependencies.bevy_math]
version = "0.14"
default-features = false

[dependencies.bevy_render]
version = "0.14"
default-features = false

[dev-dependencies]
bevy = "0.14"
bevy_prototype_lyon = "0.12.0"
indoc = "2.0.4"

Expand Down
3 changes: 2 additions & 1 deletion src/collider/avian2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use avian2d::{
},
prelude::Collider,
};
use bevy::prelude::{Image, Vec2};
use bevy_math::prelude::Vec2;
use bevy_render::prelude::Image;
use edges::Edges;

/// Generate a single polyline collider from the image,
Expand Down
3 changes: 2 additions & 1 deletion src/collider/rapier2d.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use bevy::prelude::{Image, Vec2};
use bevy_math::prelude::Vec2;
use bevy_rapier2d::prelude::{Collider, Real};
use bevy_render::prelude::Image;
use edges::Edges;

/// Generate a single `bevy_rapier2d` polyline collider from the image,
Expand Down

0 comments on commit d2079cb

Please sign in to comment.