From dab066430c7e5a312c671e7f4c8726d285aa221f Mon Sep 17 00:00:00 2001 From: ghostly_zsh Date: Mon, 13 Apr 2026 16:28:12 -0500 Subject: [PATCH] fix: thrusters fixed mostly but done correctly this time --- crates/unified/src/server/player/thrust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/unified/src/server/player/thrust.rs b/crates/unified/src/server/player/thrust.rs index 9976e25b13e81cf1fa4872b90b0f17a5d0802494..6cf600d14023fc9658affac6b92fa70142bcc1cc 100644 --- a/crates/unified/src/server/player/thrust.rs +++ b/crates/unified/src/server/player/thrust.rs @@ -13,7 +13,7 @@ use crate::thrust::ThrustSolution; pub fn server_thrust_plugin(app: &mut App) { app .add_systems(Update, process_thrust_events) - .add_systems(Update, apply_thrust_solutions); + .add_systems(FixedUpdate, apply_thrust_solutions); } /// Handle new `ThrustSolution`s from clients as they come in @@ -99,7 +99,7 @@ fn apply_thrust_solutions( part_forces.apply_force_at_point( (thruster_transform.rotation() * thruster_info.thrust_vector.extend(0.0)).xy(), - thruster_transform.translation().xy() + part_forces.linear_velocity()*time.delta_secs(), + thruster_transform.translation().xy(), ); } }