Instance Methods | List of all members
CC3SprayMeshParticle Class Reference

#import <CC3MeshParticleSamples.h>

Inheritance diagram for CC3SprayMeshParticle:
Inheritance graph

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
- Properties inherited from <CC3UniformlyMovingParticleProtocol>
CC3Vector location
CC3Vector velocity

Detailed Description

CC3SprayMeshParticle is a type of CC3MortalMeshParticle that implements the CC3SprayParticleProtocol to configure the particle to move in a straight line at a steady speed.

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 direction and speed are specified by the velocity property. To produce uniform motion, this method multiplies this velocity by the interval since the previous update, and the resulting distance vector is added to the location of this particle

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

Implements CC3MortalMeshParticle.

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