Inherits from CC3MortalMeshParticle : CC3ScalableMeshParticle : CC3MeshParticle : CC3ParticleBase : NSObject
Conforms to CC3SprayParticleProtocol
Declared in CC3MeshParticleSamples.h

Overview

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

Instance Methods

updateBeforeTransform:

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

- (void)updateBeforeTransform:(CC3NodeUpdatingVisitor *)visitor

Discussion

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..

Declared In

CC3MeshParticleSamples.h