A CC3Billboard node customized to display and manage a cocos2d 2D CCParticleSystem. More...
#import <CC3Billboard.h>
Properties | |
CC3AttenuationCoefficients | particleSizeAttenuationCoefficients |
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:
- (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.