allista / hangar

This is a plugin for the Kerbal Space Program. It provides several modules and parts to store complete vessels that aren't needed to free CPU of their burden.
http://forum.kerbalspaceprogram.com/threads/88933
Other
18 stars 9 forks source link

Vessel positioning on launch doesn't take part variants into account #202

Closed allista closed 5 years ago

allista commented 5 years ago

Allista, I just out the nightbuild.

It doesn't work with the stock Mk2 Lander Can. I think it doesn't like that the Mk2 has a different orientation if the "Rover" variant is used. I'm able to adjust the orientation in the SPH but when launching the rover, it launches using the default orientation of the Mk2 Lander Can "Lander" variant. Which causes clipping between the Hangar and the vessel and a big explosion.

You can test by creating a rover using the Mk2 Lander Can and putting some wheels on it. Drive it around first before testing with a Hangar so you're sure that the orientation is correct.

There is a workaround though. If I use a probe core as the root part, attach the Mk2 Lander Can to that and build the rest around it.

allista commented 5 years ago

The problem was actually not in part variants but in the rotation of the root part in editor, which is 1) set to Y-90 deg in SPH by default and 2) may be changed by the user while creating a craft. It needed to be reset before launching of ShipConstructs