Tidal-Stream / ProceduralParts

A continuation of StretchySRBs, which is a continuation of StretchyTanks
8 stars 15 forks source link

Offset top of part #4

Open rsparkyc opened 6 years ago

rsparkyc commented 6 years ago

This is basically a clone of the issues opened here: https://github.com/Starwaster/ProceduralParts/issues/17 The only difference is that I feel it would be nice to have support for this across all the parts, and not just the nosecones.

Tidal-Stream commented 6 years ago

I think relevant sections of the source code are the ProceduralAbstractSoRShape.cs file and the WriteMeshes method. If you call it like in ProceduralShapeCone.cs, it interpolates a cone from two circles. Perhaps with adding an additional parameter and the corresponding code it could be made to generate a slanted cone like R-7. Given how efficient fuel crossfeed is in KSP, procedural slanted fuel tanks would be quite useful with FAR.

ElectroStar commented 5 years ago

@Tidal-Stream you were right at the source code sections. Once you understand how the verticies are created, it's just a matter of a few minutes. Got big problems with the attachmend points. Just manipulating the position of these points isn't enougth. Any advice for the MoveAttachments Method and and if necessary other sections?

Tidal-Stream commented 5 years ago

I have not experimented with that method. @MikeOnTea may have more input on attachment nodes because of his work on polygonal parts and attachment node symmetry there.

MikeOnTea commented 5 years ago

Luckily i didn't have to mess with them too much and mostly reused the cylindrical code iirc, so i don't really know much about that either.