CC3MortalParticleProtocol Protocol Reference
Conforms to | CC3ParticleProtocol |
Declared in | CC3ParticleSamples.h |
Overview
CC3MortalParticleProtocol extends CC3ParticleProtocol to allow a particle to be configured with a finite life.
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.
This protocol can be used with both point and mesh particles.
Properties
lifeSpan
Indicates the overall life span of the particle.
@property (nonatomic, assign) CCTime lifeSpan
Discussion
This property should be set once during initialization, prior to emission.
Declared In
CC3ParticleSamples.h
timeToLive
Indicates the remaining time the particle has to live.
@property (nonatomic, readonly) CCTime timeToLive
Discussion
This property is automatically decremented as the particle ages. Once this property reaches zero, the particle will automatically expire itself.
Declared In
CC3ParticleSamples.h