Public Member Functions | Protected Attributes

CC3SprayPointParticle Class Reference

CC3SprayPointParticle is a type of CC3MortalPointParticle that implements the CC3SprayParticleProtocol to configure the particle to move in a straight line at a steady speed. More...

#import <CC3PointParticleSamples.h>

Inheritance diagram for CC3SprayPointParticle:
Inheritance graph
[legend]
Collaboration diagram for CC3SprayPointParticle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - updateBeforeTransform:

Protected Attributes

CC3Vector velocity

Detailed Description

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


Member Function 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 CC3MortalPointParticle.


Member Data Documentation

- (CC3Vector) velocity [protected]

The velocity of this particle.

This vector combines both speed and direction, with the speed determined by the length of the vector.

Reimplemented from <CC3UniformlyMovingParticleProtocol>.


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