Feedback #10217
Feature request: Notify when joint is created and setup
Description
Is there a chance to have an ability for the mods to know when a joint (PartJoint) is created and initialized between the two parts? The moment that is interesting is when the joint is: a) created, and; b) setup to its final state. Alas, listening for onVesselGoOffRails, onPartCouple, and onPartDecouple don't give enough context since joint is not existing at this momemnt. Moreover, even in OnStart the joint is not final even though it's existing, it can (and usually will) change aftewards. There are workarounds to detect the moment but they are all weird and error prone. It would be better if KSP could nodtify modules about the joint final state (in case of they want modifying it).
One of the ways of getting this issue solved could be designing PartJoint so what it could be overridden. In which case the original joint could be replaced in the OnStart method, and all the following interactions would be going between KSP core and the custom joint provider.