dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
80 stars 32 forks source link

More GeometryPartModule fixes #39

Closed dkavolis closed 5 years ago

dkavolis commented 5 years ago

Adds rebuildOnAnimation (bool) config node which rebuilds mesh data for voxelization if an animation was played instead of updating the transforms. However, the computational cost is increased. See InflatableHeatShield as an example:

@PART[InflatableHeatShield]:AFTER[FerramAerospaceResearch]
{
    @MODULE[GeometryPartModule]
    {
        %forceUseMeshes = True
        %ignoreIfNoRenderer = true
        %rebuildOnAnimation = true
    }
}

Previously had to force use colliders which resulted in slightly odd voxelization.

Also properly handle ModuleJettison if part contains ModulePartVariants - jettisonName is a comma separated list of jettison transform names for use with part variants.

Fixes #38