Skip to content

Commit

Permalink
fix vector direction display
Browse files Browse the repository at this point in the history
  • Loading branch information
n7275 committed Jan 12, 2024
1 parent a1bbd0b commit 11f03d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Orbiter/Vessel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ bool Vessel::GetSideForceVector (Vector &SF) const
} else {
double v0 = std::hypot(sp.airvel_ship.x, sp.airvel_ship.z);
double scale = (v0 ? SideForce / v0 : 0.0);
SF.Set(0, sp.airvel_ship.z * scale, -sp.airvel_ship.x * scale);
SF.Set(sp.airvel_ship.z * scale, 0, - sp.airvel_ship.x * scale);
return true;
}
}
Expand Down

0 comments on commit 11f03d3

Please sign in to comment.