Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Compute default surface/orbital navball switching heights.
@Kopernicus:AFTER[RealSolarSystem]
{
@Body:HAS[@Atmosphere]
@Body:HAS[@Atmosphere:HAS[#maxAltitude]]
{
// For atmospheric bodies, set to 80% the height of the atmosphere.
@Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow]
Expand All @@ -13,6 +13,30 @@
@navballSwitchRadiusMultLow *= 0.95
}
}
@Body:HAS[@Atmosphere:HAS[#altitude]]
{
// For atmospheric bodies, set to 80% the height of the atmosphere.
@Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow]
{
navballSwitchRadiusMult = #$../Atmosphere/altitude$
@navballSwitchRadiusMult *= 0.8
@navballSwitchRadiusMult /= #$radius$
navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$
@navballSwitchRadiusMultLow *= 0.95
}
}
@Body:HAS[@Atmosphere:HAS[#atmosphereDepth]]
{
// For atmospheric bodies, set to 80% the height of the atmosphere.
@Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow]
{
navballSwitchRadiusMult = #$../Atmosphere/atmosphereDepth$
@navballSwitchRadiusMult *= 0.8
@navballSwitchRadiusMult /= #$radius$
navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$
@navballSwitchRadiusMultLow *= 0.95
}
}
@Body:HAS[!Atmosphere]
{
// Clamp minimum switch height of non-atmospheric bodies to 1 km.
Expand Down
18 changes: 17 additions & 1 deletion GameData/RealSolarSystem/RSSKopernicusSettings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,21 @@
// We do not set the periods because nothing good can come out of
// inconsistent orbital elements.

!Body,* {}
!Body[Sun] {}
!Body[Kerbin] {}
!Body[Moho] {}
!Body[Duna] {}
!Body[Eve] {}
!Body[Ike] {}
!Body[Gilly] {}
!Body[Mun] {}
!Body[Minmus] {}
!Body[Jool] {}
!Body[Eeloo] {}
!Body[Laythe] {}
!Body[Vall] {}
!Body[Tylo] {}
!Body[Bop] {}
!Body[Pol] {}
!Body[Dres] {}
}