Skip to content

Commit

Permalink
Update dependencies (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Thierry Berger <[email protected]>
  • Loading branch information
JoelCourtney and Vrixyz authored Jun 24, 2024
1 parent 6e5cabe commit 2de9ad0
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
16 changes: 8 additions & 8 deletions build/salva2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ required-features = [ "dim2" ]
approx = "0.5"
num-traits = "0.2"
fnv = "1.0"
itertools = "0.12"
itertools = "0.13"
generational-arena = "0.2"
instant = { version = "0.1", features = [ "now" ] }
rayon = { version = "1.8", optional = true }

nalgebra = "0.32"
parry2d = { version = "0.13", optional = true }
rapier2d = { version = "0.18", optional = true }
rapier_testbed2d = { version = "0.18", optional = true }
nalgebra = "0.33"
parry2d = { version = "0.16", optional = true }
rapier2d = { version = "0.21", optional = true }
rapier_testbed2d = { version = "0.21", optional = true }

bevy_egui = { version = "0.23", features = ["immutable_ctx"], optional = true }
bevy_egui = { version = "0.26", features = ["immutable_ctx"], optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
bevy = { version = "0.12.1", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true }
bevy = { version = "0.13.2", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true }

# Dependencies for WASM only.
[target.'cfg(target_arch = "wasm32")'.dependencies]
bevy = { version = "0.12", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true }
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true }
16 changes: 8 additions & 8 deletions build/salva3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ required-features = [ "dim3" ]
approx = "0.5"
num-traits = "0.2"
fnv = "1.0"
itertools = "0.12"
itertools = "0.13"
generational-arena = "0.2"
instant = { version = "0.1", features = [ "now" ] }
rayon = { version = "1.8", optional = true }

nalgebra = "0.32"
parry3d = { version = "0.13", optional = true }
rapier3d = { version = "0.18", optional = true }
rapier_testbed3d = { version = "0.18", optional = true }
nalgebra = "0.33"
parry3d = { version = "0.16", optional = true }
rapier3d = { version = "0.21", optional = true }
rapier_testbed3d = { version = "0.21", optional = true }

bevy_egui = { version = "0.23", features = ["immutable_ctx"], optional = true }
bevy_egui = { version = "0.26", features = ["immutable_ctx"], optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
bevy = { version = "0.12", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true }
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true }

# Dependencies for WASM only.
[target.'cfg(target_arch = "wasm32")'.dependencies]
bevy = { version = "0.12", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true }
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true }
14 changes: 7 additions & 7 deletions examples2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ parallel = [ "rapier_testbed2d/parallel"]

[dependencies]
Inflector = "0.11"
nalgebra = "0.32"
parry2d = "0.13"
rapier2d = "0.18"
rapier_testbed2d = "0.18"
parry3d = "0.13"
bevy = "0.12.1"
nalgebra = "0.33"
parry2d = "0.16"
rapier2d = "0.21"
rapier_testbed2d = "0.21"
parry3d = "0.16"
bevy = "0.13.2"

[dependencies.salva2d]
path = "../build/salva2d"
Expand All @@ -32,4 +32,4 @@ stdweb = "0.4"

[[bin]]
name = "all_examples2"
path = "./all_examples2.rs"
path = "./all_examples2.rs"
12 changes: 6 additions & 6 deletions examples3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ parallel = [ "rapier_testbed3d/parallel", "salva3d/parallel"]
[dependencies]
num-traits = "0.2"
Inflector = "0.11"
nalgebra = "0.32"
rapier3d = "0.18"
rapier_testbed3d = "0.18"
parry3d = "0.13"
bevy = "0.12.1"
nalgebra = "0.33"
rapier3d = "0.21"
rapier_testbed3d = "0.21"
parry3d = "0.16"
bevy = "0.13.2"

[dependencies.salva3d]
path = "../build/salva3d"
Expand All @@ -36,4 +36,4 @@ path = "./all_examples3.rs"

[[bin]]
name = "harness_basic3"
path = "./harness_basic3.rs"
path = "./harness_basic3.rs"
12 changes: 5 additions & 7 deletions src/integrations/rapier/testbed_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl FluidsTestbedPlugin {
commands: &mut Commands,
meshes: &mut Assets<Mesh>,
materials: &mut Assets<BevyMaterial>,
_components: &mut Query<(&mut Transform,)>,
_components: &mut Query<&mut Transform>,
_harness: &mut Harness,
color: &Point3<f32>,
force_shape: Option<SharedShape>,
Expand Down Expand Up @@ -210,7 +210,7 @@ impl TestbedPlugin for FluidsTestbedPlugin {
commands: &mut Commands,
meshes: &mut Assets<Mesh>,
materials: &mut Assets<BevyMaterial>,
components: &mut Query<(&mut Transform,)>,
components: &mut Query<&mut Transform>,
harness: &mut Harness,
) {
for (handle, fluid) in self.fluids_pipeline.liquid_world.fluids().iter() {
Expand Down Expand Up @@ -348,7 +348,7 @@ impl TestbedPlugin for FluidsTestbedPlugin {
commands: &mut Commands,
meshes: &mut Assets<Mesh>,
materials: &mut Assets<BevyMaterial>,
components: &mut Query<(&mut Transform,)>,
components: &mut Query<&mut Transform>,
harness: &mut Harness,
) {
if self.queue_graphics_reset {
Expand All @@ -366,9 +366,7 @@ impl TestbedPlugin for FluidsTestbedPlugin {
min = min.min(magnitude);
max = max.max(magnitude);
if let Some(entity) = entities.get_mut(idx) {
if let Ok(mut pos) =
components.get_component_mut::<Transform>(entity.entity)
{
if let Ok(mut pos) = components.get_mut(entity.entity) {
{
pos.translation.x = particle.x;
pos.translation.y = particle.y;
Expand Down Expand Up @@ -459,7 +457,7 @@ impl TestbedPlugin for FluidsTestbedPlugin {
commands: &mut Commands,
meshes: &mut Assets<Mesh>,
materials: &mut Assets<BevyMaterial>,
components: &mut Query<(&mut Transform,)>,
components: &mut Query<&mut Transform>,
) {
fn get_rendering_mode_index(rendering_mode: FluidsRenderingMode) -> usize {
FLUIDS_RENDERING_MAP
Expand Down
2 changes: 1 addition & 1 deletion src/z_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn compute_points_z_order(points: &[Point<Real>]) -> Vec<usize> {
let mut indices: Vec<_> = (0..points.len()).collect();
indices.sort_unstable_by(|i, j| {
z_order_floats(points[*i].coords.as_slice(), points[*j].coords.as_slice())
.unwrap_or(std::cmp::Ordering::Equal)
.unwrap_or(Ordering::Equal)
});
indices
}
Expand Down

0 comments on commit 2de9ad0

Please sign in to comment.