Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way for vessels to cache "accumulatable" values #19

Open
Katniss218 opened this issue Feb 16, 2024 · 0 comments
Open

A way for vessels to cache "accumulatable" values #19

Katniss218 opened this issue Feb 16, 2024 · 0 comments
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

Comments

@Katniss218
Copy link
Owner

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.

@Katniss218 Katniss218 added api Requesting a change or addition to the API - might affect mods or other parts of the code improvement Make an existing feature better labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant