Skip to content

Conversation

SofieBrink
Copy link
Collaborator

Fixes #15

  • Removed harmony patch for ModuleAutoCutDrogue from the module's cs file and moved it to its own harmony patches folder.
  • Added ModuleCenterFollowTransform to replace ModuleCoPFollowTransform.
  • Deprecated ModuleCoPFollowTransform.

- Removed harmony patch for ModuleAutoCutDrogue from the module's cs file and moved it to its own harmony patches folder
- Added ModuleCenterFollowTransform to replace ModuleCoPFollowTransform.
- Deprecated ModuleCoPFollowTransform.
- Support mixing and matching what center follows the transform using B9PS
@SofieBrink SofieBrink added enhancement New feature or request code Something that requires code changes labels Nov 17, 2024
@SofieBrink SofieBrink added this to the Version 1.0 milestone Nov 17, 2024
@SofieBrink SofieBrink self-assigned this Nov 17, 2024
@SofieBrink
Copy link
Collaborator Author

Would appreciate if you had a look at this one @JonnyOThan, you had some great feedback on the previous version of this module which was very welcome.

if (enableCoL) part.CoLOffset = part.partInfo.partPrefab.CoLOffset;
}
// Set offets back to the values in the prefab if the mode is disabled after initial initialisation; e.g. B9PS
if (!enableCoP && wasEnabledCoP) part.CoPOffset = part.partInfo.partPrefab.CoPOffset;
Copy link
Collaborator Author

@SofieBrink SofieBrink Nov 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm debating if this should only be done here or in fixed-update too.
Doing it here is probably better for performance, while doing it in fixed-update would mean if something other than B9PS manipulates the KSPFields without calling OnLoad the module would reset the now no longer updating center too.

@SofieBrink
Copy link
Collaborator Author

I need this merged sooner rather than later, so i'm just going to do that.
If you find anything please open an issue about it instead @JonnyOThan

@SofieBrink SofieBrink merged commit 38d04d3 into main Nov 18, 2024
1 check passed
@SofieBrink SofieBrink deleted the v0.3.0 branch November 21, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Something that requires code changes enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Expand ModuleCoPFollowTransform to contain an option to make the CoL follow too
1 participant