Skip to content

Commit

Permalink
So "fixing the engine rotation" was actually "adding a bug" :)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Jul 3, 2016
1 parent 50e81dc commit c47f06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GimbalTrim.cs
Expand Up @@ -232,7 +232,7 @@ private void DoTrim(Transform vesselTransform, Vector3 CoM)
for (int i = 0; i < count; i++)
{
currentTrim.x = enableTrim ? trimX : 0;
currentTrim.z = enableTrim ? trimY : 0;
currentTrim.y = enableTrim ? trimY : 0;

Transform gimbalTransform = gimbal.gimbalTransforms[i];

Expand All @@ -243,7 +243,7 @@ private void DoTrim(Transform vesselTransform, Vector3 CoM)
sign = -1f;
}

Vector3 localTrim = gimbalTransform.InverseTransformDirection(vesselTransform.TransformDirection(sign * currentTrim));
Vector3 localTrim = sign * currentTrim;

if (useTrimResponseSpeed)
{
Expand Down

0 comments on commit c47f06d

Please sign in to comment.