diff --git a/src/main.rs b/src/main.rs index 9477885..ba0cd5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,17 +26,24 @@ fn main() { let planets = vec![ planet::PlanetBuilder::new() .with_name(String::from("Earth")) - .with_velocity(vec![-0.0002, 0.0]) - .with_positsion(0.0, -25.0) .with_mass(100000.0) + .with_radius(10.0) + .with_positsion(0.0, 0.00) + .with_color(canvas::BLUE) + .build(), + planet::PlanetBuilder::new() + .with_name(String::from("Moon I")) + .with_velocity(vec![0.0, -0.0004]) + .with_positsion(50.0, 0.0) + .with_mass(1000.0) .with_radius(5.0) .with_color(canvas::GREEN) .build(), planet::PlanetBuilder::new() - .with_name(String::from("Moon")) - .with_velocity(vec![0.0002, 0.0]) - .with_positsion(0.0, 25.0) - .with_mass(100000.0) + .with_name(String::from("Moon II")) + .with_velocity(vec![0.0004, 0.0]) + .with_positsion(0.0, 50.0) + .with_mass(100.0) .with_radius(5.0) .with_color(canvas::RED) .build(),