Skip to content

Commit

Permalink
Only apply useThrottle if not applying RCS axial thrust.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Aug 23, 2015
1 parent 4880ba4 commit 4eb5149
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified ModuleRCSFX/Plugins/ModuleRCSFX.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/ModuleRCSFX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public override void OnStart(StartState state)
return;

float ctrlZ = vessel.ctrlState.Z;
if (useThrottle)
if (useThrottle && ctrlZ < EPSILON && ctrlZ > -EPSILON) // only do this if not specifying axial thrust.
{
ctrlZ -= vessel.ctrlState.mainThrottle;
ctrlZ = Mathf.Clamp(ctrlZ, -1f, 1f);
Expand Down

0 comments on commit 4eb5149

Please sign in to comment.