A way for vessels to cache "accumulatable" values #19
Labels
api
Requesting a change or addition to the API - might affect mods or other parts of the code
improvement
Make an existing feature better
Since I'm bad at writing...
Example: mass
When mass is defined, it's spread out all over the vessel, in
IHasMass
components.The vessel itself should know its total mass and center of mass (and moment of inertia) at any given time, but it's expensive to recalculate everything.
Thus it already supports caching of the mass, and updating its value whenever a mass of the component changes.
I want to extend this to other cacheable values, in a way that mods will be able to define their own too.
The text was updated successfully, but these errors were encountered: