~starkingdoms/starkingdoms

67f623b50b225519dbbd2fa9cfc2ac191754a2aa — ghostly_zsh 8 months ago 30d4656
buffed landing thrusters and updated config files
M crates/client/src/rendering/assets_wasm.rs => crates/client/src/rendering/assets_wasm.rs +1 -1
@@ 66,7 66,7 @@ impl Assets {
                    };
                    let tree = usvg::Tree::from_data(&response.bytes, &opt).expect(&format!("Couldn't parse svg {}", local_path_clone));
                    let tree_size = tree.size().to_int_size();
                    let size = usvg::Size::from_wh(500.0, 500.0).unwrap().to_int_size();
                    let size = usvg::Size::from_wh(512.0, 512.0).unwrap().to_int_size();
                    assert!(size.width() > 0 && size.height() > 0);
                    let mut pixmap = tiny_skia::Pixmap::new(size.width(), size.height()).expect("Failed to construct pixmap");
                    resvg::render(&tree, tiny_skia::Transform::from_scale((size.width() as f32)/(tree_size.height() as f32), (size.height() as f32)/(tree_size.height() as f32)), &mut pixmap.as_mut());

M crates/server/config.toml => crates/server/config.toml +4 -3
@@ 1,6 1,7 @@
[physics]
solver = "SmallstepPGS" # or "OldPGS"
dt = 0.05
[physics.parameters]
dt = 0.016666666
min_ccd_dt = 0.000166666666667
erp = 0.8
damping_ratio = 0.25


@@ 17,7 18,7 @@ min_island_size = 128
max_ccd_substeps = 1

[world]
gravity = 0.0002
gravity = 0.015
pixels_per_meter = 1.0

[security]


@@ 26,6 27,6 @@ required_permission_level = 0

[server]
tick_time_ms = 1
world_fixed_timestep = 0.01666
world_fixed_timestep = 0.016666666
bind = { ip = "0.0.0.0", port = 3000 }
max_free_parts = 50

M crates/server/parts.toml => crates/server/parts.toml +1 -1
@@ 8,7 8,7 @@ thruster_energy = 1
mass = 0.9
energy_capacity = 1000
thruster_force = 5
thruster_energy = 3
thruster_energy = 2

[part.Cargo]
mass = 0.5

M crates/server/planets.toml => crates/server/planets.toml +36 -4
@@ 1,11 1,43 @@
[planets.Sun]
size = 400.0
mass = 16000000.0

[planets.Mercury]
size = 6.66667
mass = 246.669133339

[planets.Venus]
size = 18.998
mass = 8166.826315

[planets.Earth]
size = 20.0
mass = 10000.0

[planets.Moon]
size = 5.0
mass = 300.0
size = 5.454
mass = 123.082143245

[planets.Mars]
size = 10.0
mass = 1250.0
\ No newline at end of file
size = 10.62
mass = 1070.519602

[planets.Jupiter]
size = 219.46
mass = 2554342.75093

[planets.Saturn]
size = 182.804
mass = 889991.421487

[planets.Uranus]
size = 80.14
mass = 142374.556949

[planets.Neptune]
size = 77.66
mass = 171547.175867

[planets.Pluto]
size = 3.736
mass = 22.0759477551

M crates/server/src/module/mod.rs => crates/server/src/module/mod.rs +1 -1
@@ 537,7 537,7 @@ fn convert_modules_recursive(
                    let joint = PrismaticJointBuilder::new(Vec2::new(0., 1.))
                        .local_anchor1(Vec2::new(0., 0.))
                        .local_anchor2(Vec2::new(0., 0.))
                        .set_motor(0., 0., 3000., 3000.)
                        .set_motor(0., 0., 9000., 3000.)
                        .limits([0., 1.])
                        .build();
                    let mut suspension = commands.spawn(PartBundle {