CCParticleSystemPositionType Constants Reference
| Declared in | CCParticleSystemBase.h |
CCParticleSystemPositionType
Particle system position type.
Definition
typedef NS_ENUM(NSUInteger, CCParticleSystemPositionType ) {
CCParticleSystemPositionTypeFree,
CCParticleSystemPositionTypeRelative,
CCParticleSystemPositionTypeGrouped,
};
Constants
CCParticleSystemPositionTypeFree-
Living particles are attached to the world and are unaffected by emitter repositioning.
Declared In
CCParticleSystemBase.h. CCParticleSystemPositionTypeRelative-
Living particles are attached to the world but will follow the emitter repositioning. Use case: Attach an emitter to an sprite, and you want that the emitter follows the sprite.
Declared In
CCParticleSystemBase.h. CCParticleSystemPositionTypeGrouped-
Living particles are attached to the emitter and are translated along with it.
Declared In
CCParticleSystemBase.h.
Declared In
CCParticleSystemBase.h