#import <CC3ParticleSamples.h>
Properties | |
CCTime | maxParticleLifeSpan |
CCTime | minParticleLifeSpan |
Properties inherited from CC3ParticleNavigator | |
CC3ParticleEmitter * | emitter |
Additional Inherited Members | |
Instance Methods inherited from CC3ParticleNavigator | |
(void) | - initializeParticle: |
(void) | - populateFrom: |
Class Methods inherited from CC3ParticleNavigator | |
(id) | + navigator |
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.
|
readwritenonatomicassign |
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.
|
readwritenonatomicassign |
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.