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 https:/github.com/cocos-creator/engine/blob/master/cocos2d/particle/CCParticleSystem.js:61
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 https:/github.com/cocos-creator/engine/blob/master/cocos2d/particle/CCParticleSystem.js:70
GROUPED

Living particles are attached to the emitter and are translated along with it.

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/particle/CCParticleSystem.js:80

results matching ""

    No results matching ""