pellinor0 / TweakScale

Forked from Gaius Goodspeed's Goodspeed Aerospace Part & TweakScale plugin
29 stars 23 forks source link

More information from the prefabPart? #39

Closed pellinor0 closed 7 years ago

pellinor0 commented 7 years ago

In principle, the prefabPart has enough information to know the properties of scaled parts.

It should be able to answer questions like "What is the moduleMass for this part when scaled to 2.5m?"

Or even "by what factor would you multiply property 'xyz' if the scale was 5m?"

This could be useful for mods that handle parts without physically creating them, like KIS or KCT. The interface would probably be public methods that can be called via reflection.

pellinor0 commented 7 years ago

implemented here: https://github.com/pellinor0/TweakScale/commit/1b5c321539226b069e554691ef0d128024c04a8a To my knowledge KIS now has what it needs to correctly handle scaled parts in containers.