CC3RandomMortalParticleNavigator Class Reference
Inherits from | CC3ParticleNavigator : NSObject |
Declared in | CC3ParticleSamples.h |
Overview
CC3RandomMortalParticleNavigator confgures the lifeSpan property of particles that conform to the CC3MortalParticleProtocol.
A particle that supports CC3MortalParticleProtocol has a finite life. and when that lifetime is finished, the particle will automatically expire itself by setting the isAlive property to NO.
During initialization of each particle in the initializeParticle: method, this navigator sets the lifeSpan property of the particle is set to a random value between the values of the minParticleLifeSpan and maxParticleLifeSpan properties of this navigator.
Properties
maxParticleLifeSpan
Indicates the upper limit of the range of possible particle life spans.
@property (nonatomic, assign) CCTime maxParticleLifeSpan
Discussion
When a particle is emitted, the lifeSpan property will be set to a random value between the value of the minParticleLifeSpan property and the value of this property.
The initial value of this property is zero.
Declared In
CC3ParticleSamples.h
minParticleLifeSpan
Indicates the lower limit of the range of possible particle life spans.
@property (nonatomic, assign) CCTime minParticleLifeSpan
Discussion
When a particle is emitted, the lifeSpan property will be set to a random value between the value of this property and the value of the maxParticleLifeSpan property.
The initial value of this property is zero.
Declared In
CC3ParticleSamples.h