Difference between revisions of "Particles:setParticleDecay"

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