Difference between revisions of "Particles:setParticleSpeed"

From GiderosMobile
 
(9 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 ===
Set speed of particles
+
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>
'''i''': (number) particle index ''''''<br/>
+
 
'''x''': (number) x vector '''optional'''<br/>
+
=== Parameters ===
'''y''': (number) y vector '''optional'''<br/>
+
'''i''': (number) particle index<br/>
 +
'''x''': (number) x speed '''optional'''<br/>
 +
'''y''': (number) y speed '''optional'''<br/>
 +
'''z''': (number) z speed (if the particle set is 3D) '''optional'''<br/>
 
'''a''': (number) angular velocity '''optional'''<br/>
 
'''a''': (number) angular velocity '''optional'''<br/>
 
'''s''': (number) growth speed '''optional'''<br/>
 
'''s''': (number) growth speed '''optional'''<br/>
 +
 +
{{Particles}}

Latest revision as of 20:57, 21 September 2023