Difference between revisions of "Particles:setParticleDecay"
From GiderosMobile
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' | + | '''Available since:''' Gideros 2016.10<br/> |
+ | '''Class:''' [[Particles]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Configures decay values for the given particle. | |
− | < | + | <syntaxhighlight lang="lua"> |
− | + | Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular) | |
− | </ | + | </syntaxhighlight> |
+ | |||
=== Parameters === | === Parameters === | ||
− | '''i''': (number) particle index <br/> | + | '''i''': (number) particle index<br/> |
− | '''decay''': (number) speed decay factor <br/> | + | '''decay''': (number) speed decay factor<br/> |
− | '''decayAlpha''': (number) alpha decay factor <br/> | + | '''decayAlpha''': (number) alpha decay factor<br/> |
− | '''decayGrowth''': (number) growth speed decay factor <br/> | + | '''decayGrowth''': (number) growth speed decay factor<br/> |
− | '''decayAngular''': (number) angular speed decay factor <br/> | + | '''decayAngular''': (number) angular speed decay factor<br/> |
+ | |||
+ | Since Gideros 2022.5, '''decay''' can be a vector allowing to set x,y and z decay independantly. | ||
+ | |||
+ | {{Particles}} |
Latest revision as of 20:53, 21 September 2023
Available since: Gideros 2016.10
Class: Particles
Description
Configures decay values for the given particle.
Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)
Parameters
i: (number) particle index
decay: (number) speed decay factor
decayAlpha: (number) alpha decay factor
decayGrowth: (number) growth speed decay factor
decayAngular: (number) angular speed decay factor
Since Gideros 2022.5, decay can be a vector allowing to set x,y and z decay independantly.
- Particles
- Particles.new
- Particles:addParticles
- Particles:clearTexture
- Particles:getDeadParticles
- Particles:getNearestParticle
- Particles:getNumParticles
- Particles:getParticleAcceleration
- Particles:getParticleAngle
- Particles:getParticleColor
- Particles:getParticleDecay
- Particles:getParticleExtra
- Particles:getParticlePosition
- Particles:getParticleSize
- Particles:getParticleSpeed
- Particles:getParticleTag
- Particles:getParticleTtl
- Particles:getParticles
- Particles:isPaused
- Particles:removeParticles
- Particles:scaleParticles
- Particles:setParticleAcceleration
- Particles:setParticleAngle
- Particles:setParticleColor
- Particles:setParticleDecay
- Particles:setParticleExtra
- Particles:setParticlePosition
- Particles:setParticleSize
- Particles:setParticleSpeed
- Particles:setParticleTag
- Particles:setParticleTtl
- Particles:setPaused
- Particles:setTexture