Difference between revisions of "Particles:setParticleDecay"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' in development<br/> === Description === Configure decay values for the given particle <source lang="lua"> = Particles:setParticleDecay(idecayd...")
 
Line 4: Line 4:
 
Configure decay values for the given particle
 
Configure decay values for the given particle
 
<source lang="lua">
 
<source lang="lua">
= Particles:setParticleDecay(idecaydecayAlphadecayGrowthdecayAngular,)
+
Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)
 
</source>
 
</source>
'''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/>

Revision as of 10:17, 23 August 2018

Available since: in development

Description

Configure decay values for the given particle

 Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)

'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 '