Skip to content

Commit

Permalink
Disable stock ground positioning enhancer when KJRGroundJointModule i…
Browse files Browse the repository at this point in the history
…s in use
  • Loading branch information
siimav committed Oct 6, 2024
1 parent 080aee6 commit bf3d3e5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public void OnPartUnpack()
{
GameEvents.onVesselWasModified.Add(OnVesselWasModified);
subscribedToEvents = true;

// By the time the code gets here, the stock CheckGroundCollision() method has been run at least once.
// With the extra world-space joints, it's safe to make the assumption that the vessel will
// never shift in a significant way so any further collision checks aren't necessary.
// This also means that stock code will no longer shift the vessel up or down when coming off rails.
vessel.skipGroundPositioning = true;
}
else
{
Expand Down

0 comments on commit bf3d3e5

Please sign in to comment.