self namespace contains all particle-related functions and variables.
Normalized age of the particle, in the
[0, 1] range.
When the particle is spawned, the lifeRatio is
When the particle dies, the lifeRatio is
Inverse life of the particle:
life = 1.0f / self.invLife.
The simulation internally stores the inverse life for performance reasons, and this is kept explicit with
self.invLife, which will produce an efficient direct memory read. If you need the life instead of inverse life, you can use
1 / self.invLife.
true, kills the particle this frame.
true if the current frame is the particle’s death frame, and the particle was killed via an explicit
false otherwise, including if the particle died of natural cause.
Reads the internal simulation kill-bit for this particle.
true is returned, it does not necessarily mean
self.wasKilled() are true this frame.
true if the current frame is the particle’s death frame, otherwise returns