Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "README.md"
authors = ["laund <me@laund.moe>"]

[dependencies]
bevy = { version = "0.16", default-features = false }
bevy = { version = "0.19", default-features = false }
# KD-Tree dependencies
kd-tree = { version = "0.6.0", optional = true }
typenum = { version = "1.18.0" }
Expand All @@ -23,7 +23,7 @@ kdtree_rayon = ["kdtree", "kd-tree/rayon"]
kdtree = ["dep:kd-tree"]

[dev-dependencies]
bevy = { version = "0.16" }
bevy = { version = "0.19" }
rand = "0.8"

[profile.dev]
Expand Down
8 changes: 5 additions & 3 deletions examples/distance3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ fn setup(
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<StandardMaterial>>,
mut ambient_light: ResMut<AmbientLight>,
) {
let handles = MaterialHandles {
orange_red: materials.add(Color::from(csscolors::ORANGE_RED)),
Expand All @@ -50,8 +49,11 @@ fn setup(
};
commands.insert_resource(handles.clone());

ambient_light.color = Color::WHITE;
ambient_light.brightness = 500.;
commands.insert_resource(GlobalAmbientLight {
color: Color::WHITE,
brightness: 500.,
..default()
});

commands.spawn((
Camera3d::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/modify_timestep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn setup(mut commands: Commands) {
commands.spawn((
Text("Click mouse to change rate".to_string()),
TextFont {
font_size: 30.0,
font_size: FontSize::Px(30.0),
..default()
},
TextColor(Color::BLACK),
Expand Down
9 changes: 6 additions & 3 deletions src/automatic_systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ use crate::{
};

use bevy::{
ecs::schedule::{ScheduleLabel, SystemSet},
ecs::{
component::Mutable,
schedule::{ScheduleLabel, SystemSet},
},
prelude::*,
};

Expand All @@ -29,7 +32,7 @@ pub(crate) struct AutoT<SpatialDS>(PhantomData<SpatialDS>);
impl<SpatialDS> AutoT<SpatialDS>
where
GlamVec<SpatialDS>: VecFromTransform,
SpatialDS: UpdateSpatialAccess + Resource,
SpatialDS: UpdateSpatialAccess + Resource<Mutability = Mutable>,
<SpatialDS as SpatialAccess>::Point: From<(Entity, GlamVec<SpatialDS>)>,
SpatialDS::Comp: Component,
{
Expand Down Expand Up @@ -61,7 +64,7 @@ pub(crate) struct AutoGT<SpatialDS>(PhantomData<SpatialDS>);
impl<SpatialDS> AutoGT<SpatialDS>
where
GlamVec<SpatialDS>: VecFromGlobalTransform,
SpatialDS: UpdateSpatialAccess + Resource,
SpatialDS: UpdateSpatialAccess + Resource<Mutability = Mutable>,
<SpatialDS as SpatialAccess>::Point: From<(Entity, GlamVec<SpatialDS>)>,
SpatialDS::Comp: Component,
{
Expand Down