Hopefully this makes sense.
I’m trying to work out what an emitted particle’s maximum velocity.magnitude could be.
I have a particle system prefab from Unity’s asset pack with a collider surrounding the emitter. A script is attached to the collider that basically iterates through the list of collision events of the emitted particles and in this case gets the particle’s “totalVelocity.sqrMagnitude”.
flameTriggerData[flameTriggerDataIDX].sqrMagnitude = p.totalVelocity.sqrMagnitude;
“p” being an emitted particle that has collided with the collider.
This works fine, but I’m aiming to then normalise these values between the range of 0.0 - 1.0, in which case I need the maximum possible value.
With particle.totalVelocity being the sum of particle.velocity and particle.animatedVelocity I’m not sure what values/parameters in the particle system modules to take into account. The manual gives some examples but doesn’t seem the note all modules that have an effect on totalVelocity.
Anyone know the best method to work this max value out?
Thanks.