Difference between revisions of "Particles:setParticleSpeed"

From GiderosMobile
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 +
'''Class:''' [[Particles]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate>Set speed of particles</translate>
+
Sets the speed of particles.
<source lang="lua">
+
<syntaxhighlight lang="lua">
Particles:setParticleSpeed(i,x,y,a,s)
+
Particles:setParticleSpeed(i,x,y,[z],a,s)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) <translate>particle index</translate> <br/>
+
'''i''': (number) particle index<br/>
'''x''': (number) <translate>x vector</translate> '''optional'''<br/>
+
'''x''': (number) x speed '''optional'''<br/>
'''y''': (number) <translate>y vector</translate> '''optional'''<br/>
+
'''y''': (number) y speed '''optional'''<br/>
'''a''': (number) <translate>angular velocity</translate> '''optional'''<br/>
+
'''z''': (number) z speed (if the particle set is 3D) '''optional'''<br/>
'''s''': (number) <translate>growth speed</translate> '''optional'''<br/>
+
'''a''': (number) angular velocity '''optional'''<br/>
 +
'''s''': (number) growth speed '''optional'''<br/>
 +
 
 +
{{Particles}}

Latest revision as of 20:57, 21 September 2023