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...")
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' in development<br/>
+
'''Available since:''' Gideros 2016.10<br/>
 +
'''Class:''' [[Particles]]<br/>
 +
 
 
=== Description ===
 
=== Description ===
Configure decay values for the given particle
+
Configures decay values for the given particle.
<source lang="lua">
+
<syntaxhighlight lang="lua">
= Particles:setParticleDecay(idecaydecayAlphadecayGrowthdecayAngular,)
+
Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)
</source>
+
</syntaxhighlight>
'''i:''' (number) particle index ''''''<br/>
+
 
'''decay:''' (number) speed decay factor ''''''<br/>
+
=== Parameters ===
'''decayAlpha:''' (number) alpha decay factor ''''''<br/>
+
'''i''': (number) particle index<br/>
'''decayGrowth:''' (number) growth speed decay factor ''''''<br/>
+
'''decay''': (number) speed decay factor<br/>
'''decayAngular:''' (number) angular speed decay factor ''''''<br/>
+
'''decayAlpha''': (number) alpha decay factor<br/>
 +
'''decayGrowth''': (number) growth 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