CC3RandomMortalParticleNavigator confgures the lifeSpan property of particles that conform to the CC3MortalParticleProtocol. More...
#import <CC3ParticleSamples.h>
Properties | |
ccTime | maxParticleLifeSpan |
ccTime | minParticleLifeSpan |
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.
- (ccTime) maxParticleLifeSpan [read, write, assign] |
Indicates the upper limit of the range of possible particle life spans.
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.
- (ccTime) minParticleLifeSpan [read, write, assign] |
Indicates the lower limit of the range of possible particle life spans.
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.