~starkingdoms/starkingdoms

b22f51390f3852002ea507882bf99e011a5e4be4 — ghostly_zsh an hour ago 2669dea master
fix: thrusters erroneously causing a realigning torque mostly remedied
2 files changed, 1 insertions(+), 3 deletions(-)

M crates/unified/src/server/craft.rs
M crates/unified/src/server/player/thrust.rs
M crates/unified/src/server/craft.rs => crates/unified/src/server/craft.rs +0 -2
@@ 1,7 1,5 @@
use std::collections::HashMap;

use good_lp::variable;

use crate::{attachment::{PartInShip, Parts}, ecs::{CraftPartRequest, Part, Player, SingleStorage, VariableStorage}, prelude::*, server::part::{SpawnPartBundle, SpawnPartRequest}};

pub fn craft_plugin(app: &mut App) {

M crates/unified/src/server/player/thrust.rs => crates/unified/src/server/player/thrust.rs +1 -1
@@ 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()
                thruster_transform.translation().xy() + part_forces.linear_velocity()*time.delta_secs(),
            );
        }
    }