Class cc.ParticleSystem.ModeA
- Defined in: CCParticleSystem.js
Constructor Attributes | Constructor Name and Description |
---|---|
cc.ParticleSystem.ModeA(gravity, speed, speedVar, tangentialAccel, tangentialAccelVar, radialAccel, radialAccelVar, rotationIsDir)
Mode A:Gravity + Tangential Accel + Radial Accel
|
Class Detail
cc.ParticleSystem.ModeA(gravity, speed, speedVar, tangentialAccel, tangentialAccelVar, radialAccel, radialAccelVar, rotationIsDir)
Mode A:Gravity + Tangential Accel + Radial Accel
- Parameters:
- {cc.Point} gravity Optional
- Gravity value.
- {Number} speed Optional, Default: 0
- speed of each particle.
- {Number} speedVar Optional, Default: 0
- speed variance of each particle.
- {Number} tangentialAccel Optional, Default: 0
- tangential acceleration of each particle.
- {Number} tangentialAccelVar Optional, Default: 0
- tangential acceleration variance of each particle.
- {Number} radialAccel Optional, Default: 0
- radial acceleration of each particle.
- {Number} radialAccelVar Optional, Default: 0
- radial acceleration variance of each particle.
- {boolean} rotationIsDir Optional, Default: false
Field Detail
gravity
Gravity value. Only available in 'Gravity' mode.
radialAccel
radial acceleration of each particle. Only available in 'Gravity' mode.
radialAccelVar
radial acceleration variance of each particle. Only available in 'Gravity' mode.
rotationIsDir
set the rotation of each particle to its direction Only available in 'Gravity' mode.
speed
speed of each particle. Only available in 'Gravity' mode.
speedVar
speed variance of each particle. Only available in 'Gravity' mode.
tangentialAccel
tangential acceleration of each particle. Only available in 'Gravity' mode.
tangentialAccelVar
tangential acceleration variance of each particle. Only available in 'Gravity' mode.