Inherits from CC3PointParticle : CC3ParticleBase : NSObject
Conforms to CC3MortalParticleProtocol
Declared in CC3PointParticleSamples.h

Overview

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.

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

Declared In

CC3PointParticleSamples.h

updateLife:

@deprecated Override the updateBeforeTransform: method, invoke the superclass implementation, and then test the isAlive property of this particle before any further modifications.

- (void)updateLife:(CCTime)dt

Declared In

CC3PointParticleSamples.h