Skip to content

Commit

Permalink
Switch to sequential::BruteForceScalar for pocket-solar-system
Browse files Browse the repository at this point in the history
  • Loading branch information
Canleskis committed Mar 8, 2024
1 parent ff8a424 commit c52957f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/pocket-solar-system/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn setup_scene(
name: "Comet",
velocity: Vec3::new(2.8, 0.15, 0.4),
position: Vec3::new(-200.0, 138.0, -18.0),
mu: 0.000,
mu: 0.0,
radius: 0.1,
material: StandardMaterial {
base_color: Color::rgb(0.3, 0.3, 0.3),
Expand Down
2 changes: 1 addition & 1 deletion examples/pocket-solar-system/src/nbody.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{Acceleration, PhysicsSchedule, PhysicsSet, Position};
use bevy::prelude::*;
use particular::prelude::*;

pub const COMPUTE_METHOD: sequential::BruteForcePairs = sequential::BruteForcePairs;
pub const COMPUTE_METHOD: sequential::BruteForceScalar = sequential::BruteForceScalar;

#[derive(Component, Clone, Copy, Default, Deref, DerefMut)]
pub struct Mass(pub f32);
Expand Down

0 comments on commit c52957f

Please sign in to comment.