v2.0.2
Properties | List of all members
<CC3MortalParticleProtocol> Protocol Reference

#import <CC3ParticleSamples.h>

Inheritance diagram for <CC3MortalParticleProtocol>:
Inheritance graph
[legend]

Properties

CCTime lifeSpan
 
CCTime timeToLive
 

Detailed Description

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.

Property Documentation

- (CCTime) lifeSpan
readwritenonatomicassign

Indicates the overall life span of the particle.

This property should be set once during initialization, prior to emission.

- (CCTime) timeToLive
readnonatomicassign

Indicates the remaining time the particle has to live.

This property is automatically decremented as the particle ages. Once this property reaches zero, the particle will automatically expire itself.


The documentation for this protocol was generated from the following file: