Difference between revisions of "Particles:setParticleDecay"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' in development<br/>
 
'''Available since:''' in development<br/>
 
=== Description ===
 
=== Description ===
Configure decay values for the given particle
+
<translate>Configure decay values for the given particle</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)
 
  Particles:setParticleDecay(i,decay,decayAlpha,decayGrowth,decayAngular)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) particle index <br/>
+
'''i''': (number) <translate>particle index</translate> <br/>
'''decay''': (number) speed decay factor <br/>
+
'''decay''': (number) <translate>speed decay factor</translate> <br/>
'''decayAlpha''': (number) alpha decay factor <br/>
+
'''decayAlpha''': (number) <translate>alpha decay factor</translate> <br/>
'''decayGrowth''': (number) growth speed decay factor <br/>
+
'''decayGrowth''': (number) <translate>growth speed decay factor</translate> <br/>
'''decayAngular''': (number) angular speed decay factor <br/>
+
'''decayAngular''': (number) <translate>angular speed decay factor</translate> <br/>

Revision as of 13:33, 23 August 2018

Available since: in development

Description

Configure 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