@@ 131,7 131,8 @@ fn spawn_planets(mut commands: Commands) {
.insert(AdditionalMassProperties::Mass(MARS_MASS))
.insert(ReadMassProperties::default())
.with_children(|children| {
- children.spawn(Collider::ball((MARS_SIZE + 3.) / SCALE))
+ children
+ .spawn(Collider::ball((MARS_SIZE + 3.) / SCALE))
.insert(ActiveEvents::COLLISION_EVENTS)
.insert(Sensor);
})
@@ 278,7 279,7 @@ fn on_message(
radius: match *planet_type {
PlanetType::Earth => EARTH_SIZE,
PlanetType::Moon => MOON_SIZE,
- PlanetType::Mars => MARS_SIZE
+ PlanetType::Mars => MARS_SIZE,
},
},
));