v2.0.2
Instance Methods | List of all members
CC3MortalPointParticle Class Reference

#import <CC3PointParticleSamples.h>

Inheritance diagram for CC3MortalPointParticle:
Inheritance graph
[legend]

Instance Methods

(void) - updateBeforeTransform:
 
(void) - updateLife:
 
- Instance Methods inherited from CC3PointParticle
(id) - initFromEmitter:
 
(void) - update:
 
- Instance Methods inherited from CC3ParticleBase
(id) - init
 
(void) - populateFrom:
 
(void) - remove
 
- Instance Methods inherited from <CC3PointParticleProtocol>
(void) - pointNormalAt:
 

Additional Inherited Members

- Class Methods inherited from CC3PointParticle
(id) + particleFromEmitter:
 
- Properties inherited from CC3PointParticle
GLuint index __deprecated
 
CC3PointParticleEmitteremitter
 
BOOL hasNormal
 
BOOL hasSize
 
CC3Vector normal
 
GLfloat size
 
- Properties inherited from <CC3MortalParticleProtocol>
CCTime lifeSpan
 
CCTime timeToLive
 

Detailed Description

CC3MortalPointParticle is a point particle implementation of the CC3MortalParticleProtocol that has a finite life.

To make evolutionary changes to this particle, implement the updateBeforeTransform: method. In doing so, be sure to invoke the superclass implementation, which checks whether this particle is still alive or has expired. Once the superclass implementation returns, you can check the isAlive property before spending time making any further modifications.

Method Documentation

- (void) updateBeforeTransform: (CC3NodeUpdatingVisitor *)  visitor

This template callback method is invoked automatically whenever the emitter is updated during a scheduled 3D scene update.

The CC3MortalPointParticle implementation checks to see if the whether this particle is still alive or has expired, and sets the isAlive property accordingly.

You can override this method to update the evolution of the particle. You should invoke this superclass implementation and test the isAlive property before making any further modifications.

Subclasses that override this method should invoke this superclass implementation first, and should check the isAlive property prior to making any further modifications..

Implemented in CC3UniformlyEvolvingPointParticle, and CC3SprayPointParticle.

- (void) updateLife: (CCTime)  __deprecated
Deprecated:
Override the updateBeforeTransform: method, invoke the superclass implementation, and then test the isAlive property of this particle before any further modifications.

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