~starkingdoms/starkingdoms

dab066430c7e5a312c671e7f4c8726d285aa221f — ghostly_zsh 3 days ago b22f513 master
fix: thrusters fixed mostly but done correctly this time
1 files changed, 2 insertions(+), 2 deletions(-)

M crates/unified/src/server/player/thrust.rs
M crates/unified/src/server/player/thrust.rs => crates/unified/src/server/player/thrust.rs +2 -2
@@ 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(),
            );
        }
    }