Search the Community
Showing results for tags 'dragcubes'.
-
Hi all, I am trying to create a folding wing for a space probe, something that would fold up like a solar panel for compact storage, and then unfold to generate lift. I'm hoping an expert on wings like @NathanKell or a modder with experience creating wings can answer a few questions, as I've not created a wing in KSP before. Let's say for the sake of argument that the folded wing has lift characteristics equal to the Wing Connector Type C, and the unfolded wing has lift characteristics equal to the Wing Connector Type B. For reference, the Type B wing has the following PartModule: MODULE { name = ModuleLiftingSurface useInternalDragModel = True deflectionLiftCoeff = 2.0 dragAtMaxAoA = 0.5 dragAtMinAoA = 0.0 } And the Type C: MODULE { name = ModuleLiftingSurface useInternalDragModel = True deflectionLiftCoeff = 1 dragAtMaxAoA = 0.25 dragAtMinAoA = 0.0 } Notice that the Type C, which is half the size of the Type B, has half the lifting capability, which should give you an idea of how I want the folding wing to work. Questions 1. If I change the ModuleLiftingSurface values at runtime so that the folded wing has parameters equal to the Type C, and the deployed with has parameters equal to the Type B, will KSP honor the changes and change the wing's lift? 2. Do I understand correctly that KSP calculates a wing's lift based upon its drag cube and ModuleLiftingSurface? Now for the fun part, assuming my answer to question 2 is "yes." From what I can see in a parachute part, there are PartModules that appear to change the drag cube for the parachute. These are ModuleDragModifier modules. Here is an example from the Mk2-R radial chute: MODULE { name = ModuleDragModifier dragCubeName = SEMIDEPLOYED dragModifier = 1 } MODULE { name = ModuleDragModifier dragCubeName = DEPLOYED dragModifier = 58 } Questions 3. How is dragModifier applied to the drag cube? 4. How would I go about switching the drag cube for the folding wing? The only thing I can think of is to use semiDeployedDragModifier.enabled = false; deployedDragModifier.enabled = true; How does KSP change the drag cube for parachutes? So basically the idea of the folding wing is that, assuming that drag cubes play a part in calculating lift, the folded wing would have a small drag cube and lift capability, while the unfolded wing has the fully deployed drag cube and lift capability. Also, can somebody point me to a post on what the values of a drag cube mean? Thanks for your help!