Add third planet for fun.

This commit is contained in:
Marco 2024-07-07 22:42:19 +02:00
parent a13f42b7af
commit 43b6290f4a

View File

@ -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(),