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

#import <CC3MeshParticleSamples.h>

Inheritance diagram for CC3MortalMeshParticle:
Inheritance graph
[legend]

Instance Methods

(void) - updateBeforeTransform:
 

Additional Inherited Members

- Class Methods inherited from CC3ParticleBase
(id) + particle
 
- Properties inherited from CC3ScalableMeshParticle
BOOL isTransformRigid
 
BOOL isUniformlyScaledLocally
 
CC3Vector scale
 
GLfloat uniformScale
 
- Properties inherited from <CC3MortalParticleProtocol>
CCTime lifeSpan
 
CCTime timeToLive
 

Detailed Description

CC3MortalMeshParticle is a mesh particle implementation of the CC3MortalParticleProtocol, as a particle 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 CC3MortalMeshParticle 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 CC3SprayMeshParticle.


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