Inherits from CC3ParticleBase : NSObject
Conforms to CC3PointParticleProtocol
Declared in CC3PointParticles.h

Overview

CC3PointParticle is a standard base implementation of the CC3PointParticleProtocol.

CC3PointParticle provides accessors for the particle normal and size.

Properties

__deprecated

@deprecated Replaced by the particleIndex property.

@property (nonatomic, assign) GLuint index __deprecated

Declared In

CC3PointParticles.h

emitter

The emitter that emitted this particle.

@property (nonatomic, unsafe_unretained) CC3PointParticleEmitter *emitter

Discussion

For CC3PointParticle, the emitter must be of type CC3PointParticleEmitter.

Declared In

CC3PointParticles.h

hasNormal

Indicates whether this particle has vertex normal content, as determined by the vertexContentTypes property of the emitter. Within an emitter, either all particles have normal content, or none do.

@property (nonatomic, readonly) BOOL hasNormal

Discussion

When this property returns YES, each particle will have a normal vector and will interact with light sources. When this property returns NO, each particle will ignore lighting conditions.

Declared In

CC3PointParticles.h

hasSize

Indicates whether this particle has vertex size content, as determined by the vertexContentTypes property of the emitter. Within an emitter, either all particles have size content, or none do.

@property (nonatomic, readonly) BOOL hasSize

Discussion

When this property returns YES, each particle can be set to a different size. When this property returns NO, all particles will have the size specified by the particleSize property of the emitter.

Declared In

CC3PointParticles.h

normal

If this particle has vertex normal content, (which can be checked with the hasNormal property), this property indicates the vertex normal that the particle uses to interact with light sources.

@property (nonatomic, assign) CC3Vector normal

Discussion

This property is automatically and dynamically adjusted by the emitter, based on the particle’s orientation with respect to the camera. Unless you have specific reason to change this property, and know what you are doing, you should leave the value of this property alone.

If this particle does not have vertex normal content, this property will always return kCC3VectorZero. In this condition, it is safe to set this property, but changes will have no effect.

Declared In

CC3PointParticles.h

size

If this particle has individual size content, (which can be checked with the hasSize property), this property indicates the size at which this particle will appear.

@property (nonatomic, assign) GLfloat size

Discussion

If this particle has individual size content, you can set this property at any time to define the size of the particle.

If this particle does not have individual size content, this property will always return the value of the particleSize property of the emitter. In this condition, it is safe to set this property, but changes will have no effect.

Declared In

CC3PointParticles.h

Class Methods

particleFromEmitter:

@deprecated Use the particle method instead, and set emitter property directly.

+ (id)particleFromEmitter:(CC3PointParticleEmitter *)anEmitter

Declared In

CC3PointParticles.h

Instance Methods

initFromEmitter:

@deprecated Use the init method instead, and set emitter property directly.

- (id)initFromEmitter:(CC3PointParticleEmitter *)anEmitter

Declared In

CC3PointParticles.h

update:

@deprecated Replaced by the updateBeforeTransform: method.

- (void)update:(CCTime)dt

Declared In

CC3PointParticles.h