From 7276800d3b34995fc0e5c4464f2eb40f08dd951a Mon Sep 17 00:00:00 2001 From: core Date: Mon, 24 Nov 2025 21:26:26 -0500 Subject: [PATCH] feat: xtask stuff --- crates/unified/assets/config/parts/housing.part.toml | 7 ++++++- crates/unified/assets/config/world.wc.toml | 8 ++++---- crates/xtask/src/unified.rs | 10 ++++++++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/crates/unified/assets/config/parts/housing.part.toml b/crates/unified/assets/config/parts/housing.part.toml index 1aad45036c22af6d7b3440ff69a014a250352022..c8a7b37d1035c35685619372284cf080c9d9eb29 100644 --- a/crates/unified/assets/config/parts/housing.part.toml +++ b/crates/unified/assets/config/parts/housing.part.toml @@ -11,7 +11,12 @@ mass = 50 [[thruster]] id = "main" apply_force_at_local = [ 0, 0 ] -thrust_vector = [ 0.0, -4500.0 ] +thrust_vector = [ 0.0, -20000.0 ] + +[[thruster]] +id = "back" +apply_force_at_local = [ 0, 0 ] +thrust_vector = [ 0.0, 20000.0 ] [[joint]] id = "Top" diff --git a/crates/unified/assets/config/world.wc.toml b/crates/unified/assets/config/world.wc.toml index cdd6334c8d21abade962d94d0efb9c6a8eb87eaf..1e249d5b5debb5a35f60ecf1ab6c9b28d8dcc1bb 100644 --- a/crates/unified/assets/config/world.wc.toml +++ b/crates/unified/assets/config/world.wc.toml @@ -7,11 +7,11 @@ spawn_parts_interval_secs = 1 default_height = 50 default_width = 50 default_mass = 100 -joint_align_compliance = 0.0002 +joint_align_compliance = 0.000000000000000002 joint_angle_compliance = 0.00000002 -joint_limit_compliance = 0.006 -joint_linear_damping = 4.0 -joint_angular_damping = 2.0 +joint_limit_compliance = 0.0000006 +joint_linear_damping = 40.0 +joint_angular_damping = 20.0 [hearty] thrust = 500000 diff --git a/crates/xtask/src/unified.rs b/crates/xtask/src/unified.rs index 7b698879086c42c91d6191ee556772c1413fde26..c058b73a27113d06b48e0e116fbecf3e4ce3b537 100644 --- a/crates/xtask/src/unified.rs +++ b/crates/xtask/src/unified.rs @@ -54,7 +54,13 @@ impl Task for RunClientNative { "Run the client (native)" } - fn run(&self, _args: Vec) { - + fn run(&self, args: Vec) { + let args = if args.is_empty() { + "-s [::]:5151".to_string() + } else { + args.join(" ") + }; + set_current_dir(workspace_dir().join("crates/unified/")).unwrap(); + cargo(format!("run -F native -F client --package starkingdoms -- client {args}")); } } \ No newline at end of file