SmokeScreen icon indicating copy to clipboard operation
SmokeScreen copied to clipboard

Make *all* properties of KSPParticleEmitter cfg-configurable

Open eggrobin opened this issue 11 years ago • 3 comments

For now we've just told the users "don't use damping on smoke" etc., but users don't make new mu files, they reuse the HotRockets stuff, which predates many of the niftier features. We want users who reuse HotRockets mu files to be able to comply with our advice, so at least the following must be configurable (really killable, but we may as well be flexible).

damping (should not be used for smoke, use physical and drag instead)
rndForce, rndVelocity, rndAngularVelocity (should die)
useWorldSpace (should always be used for smoke and slow flames)

This should be fairly easy, we already do it for colorAnimation and sizeGrow. @sarbian, I can't assign this to myself, please do so, I'll try to do it over the week-end.

eggrobin avatar Dec 04 '14 10:12 eggrobin

You need to make sure the .mu value is used if the value is not in the cfg.

sarbian avatar Dec 04 '14 12:12 sarbian

Absolutely, we don't want to break all of HotRockets :-p

eggrobin avatar Dec 04 '14 13:12 eggrobin

TODO(@eggrobin): the following should also be optionally cfg-configurable (with fallback to .mu as currently implemented).

// to be configured from a single emissionSpread curve (uniform distribution)
minEmission, maxEmission
// to be configured from a single energySpread curve (uniform distribution)
minEnergy, maxEnergy
// to be configured from a single sizeSpread curve (uniform distribution)
minSize, maxSize

Also, erratum, force is already cfg-configurable.

eggrobin avatar Dec 05 '14 09:12 eggrobin