@@ 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(),
);
}
}