Properties

CC3ParticleSystemBillboard Class Reference

A CC3Billboard node customized to display and manage a cocos2d 2D CCParticleSystem. More...

#import <CC3Billboard.h>

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

List of all members.

Properties

CC3AttenuationCoefficients particleSizeAttenuationCoefficients
BOOL shouldTransformUnseenParticles

Detailed Description

A CC3Billboard node customized to display and manage a cocos2d 2D CCParticleSystem.

This specialized subclass adds some specific features to aid with drawing particle systems, including:


Property Documentation

- (CC3AttenuationCoefficients) particleSizeAttenuationCoefficients [read, write, assign]

The coefficients of the attenuation function that affects the size of a particle based on its distance from the camera.

The sizes of the particles are attenuated according to the formula 1/sqrt(a + b * r + c * r * r), where r is the radial distance from the particle to the camera, and a, b and c are the coefficients from this property.

The initial value of this property is kCC3ParticleSizeAttenuationNone, indicating no attenuation with distance.

- (BOOL) shouldTransformUnseenParticles [read, write, assign]

Indicates whether scheduled updates of the contained 2D billboard should continue when this node is outside the camera's view frustum.

This property is simply an alias for the parent shouldUpdateUnseenBillboard property, and exists for compatibility with the same property on the CC3MeshParticleEmitter class.

The initial value of this property is YES. You can set this property to NO to pause unnecessary update activity when the billboard is not in view.

The property does not affect any CCAction activities that might be running on the contained 2D billboard.


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