Difference between revisions of "Particles:getParticleSpeed"

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>Get speed of particle</translate>
+
Gets the speed of a particle.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number), (number) = Particles:getParticleSpeed(i)
 
(number), (number), (number), (number) = Particles:getParticleSpeed(i)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) <translate>particle index</translate> <br/>
+
'''i''': (number) particle index<br/>
 +
 
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) <translate>x vector</translate><br/>
+
'''Returns''' (number) x speed<br/>
'''Returns''' (number) <translate>y vector</translate><br/>
+
'''Returns''' (number) y speed<br/>
'''Returns''' (number) <translate>angular velocity</translate><br/>
+
'''Returns''' (number) z speed(if the particle set is 3D)<br/>
'''Returns''' (number) <translate>growth speed</translate><br/>
+
'''Returns''' (number) angular velocity<br/>
 +
'''Returns''' (number) growth speed<br/>
 +
 
 +
{{Particles}}

Latest revision as of 20:39, 21 September 2023