~starkingdoms/starkingdoms

e7f75831c3db0c6b21cff17d95466cbef4447882 — core 1 year, 11 months ago a80c003
fmt
1 files changed, 3 insertions(+), 2 deletions(-)

M server/src/main.rs
M server/src/main.rs => server/src/main.rs +3 -2
@@ 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,
                                },
                            },
                        ));