The self
namespace contains all particle-related functions and variables.
Return type | Description |
float | self.lifeRatio Life-ratio of the particle, in the [0, 1] range. |
float | self.invLife 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 rcp(self.invLife) or 1 / self.invLife . |
void | self.kill(bool condition) if condition is true , kills the particle this frame. |
bool | self.isDeterministic() Returns true if the simulation for this particle is running in deterministic mode, false otherwise. |