ParticleSystem.PositionType
Enum
Module: cc
Enum for particles movement type.
Index
FREE
RELATIVE
GROUPED
Details
FREE
Living particles are attached to the world and are unaffected by emitter repositioning.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/particle/CCParticleSystem.js:89 |
RELATIVE
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.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/particle/CCParticleSystem.js:98 |
GROUPED
Living particles are attached to the emitter and are translated along with it.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/particle/CCParticleSystem.js:108 |