diff --git a/Cargo.toml b/Cargo.toml index 861723c..1022faa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/collider/avian2d.rs b/src/collider/avian2d.rs index b462c52..0aab602 100644 --- a/src/collider/avian2d.rs +++ b/src/collider/avian2d.rs @@ -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, diff --git a/src/collider/rapier2d.rs b/src/collider/rapier2d.rs index 528a5f5..c6da56e 100644 --- a/src/collider/rapier2d.rs +++ b/src/collider/rapier2d.rs @@ -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,