Is it possible to increase launch pad and gantry position above the Earth level? Because when I will set exactly on Launch Complex 39 it's look terrible:
the sim drops the craft, all craft, onto the scene and they generally find the proper elevation... in this case, the ramp is loaded a little late so the craft and tower land on the ground instead of the ramp... i'm not sure what the best method of fixing this timing problem is, tho...
Thorsten wrote in Tue Oct 20, 2020 5:22 pm:the sim drops the craft, all craft, onto the scene and they generally find the proper elevation... in this case, the ramp is loaded a little late so the craft and tower land on the ground instead of the ramp... i'm not sure what the best method of fixing this timing problem is, tho...
That's usually true, but not in this case, as we need a special choreography to get the Shuttle onto a pad. So, the Shuttle is actually initialized in the air (you don't usually see that because that happens when the splash screen is on) while a command is given to place the launchpad. A few seconds later we kinda hope the launchpad is there, and the Shuttle (on its drop down from 30.000 ft) gets a reposition command which initialized just above the pad that's now hopefully there, and the Shuttle drops gently into the high-damping spring constants of the rear contact points.
var compute_launchpad = func {
var alt = getprop("/position/altitude-ft");
var terrain_alt = getprop("/position/altitude-agl-ft");
var place_alt = (alt - terrain_alt) + 90.0; #214
place_pad(place_alt - 60.0); # <- my mod here
}
var place_pad = func (place_alt) {
var lat = getprop("/sim/presets/latitude-deg");
var lon = getprop("/sim/presets/longitude-deg");
var heading = getprop("/sim/presets/heading-deg") + 90.0; #getprop("/orientation/heading-deg");
var lat_to_m = 110952.0;
var lon_to_m = math.cos(getprop("/position/latitude-deg")*math.pi/180.0) * lat_to_m;
var m_to_lon = 1.0/lon_to_m;
var m_to_lat = 1.0/lat_to_m;
var delta_lat = 0.0 * m_to_lat;
var delta_lon = 0.0 * m_to_lon;
geo.put_model("Aircraft/SpaceShuttle/Models/Launchpad/launchpad.xml", lat + delta_lat, lon + delta_lon, place_alt, heading); # <- using place_alt here
if (getprop("/sim/config/shuttle/place-gantry") == 1)
{
settimer( func {geo.put_model("Aircraft/SpaceShuttle/Models/Launchpad/gantry.xml", lat + delta_lat, lon + delta_lon, place_alt, heading);}, 8.0); # <- using place_alt here
}
}
It's look like the flame trench is not a problem
Thorsten wrote in Wed Oct 21, 2020 1:15 pm:It's look like the flame trench is not a problem
If that's the case, could you temporarily undo your changes and try to start FG paused till you see the Shuttle hangs in the air and then unpause? If the issue is the time to load the ramp model, this procedure should extend it somewhat.
I succeed with pause trick when I change lat and lon to keep away of flame trench:
Users browsing this forum: No registered users and 3 guests