Difference between revisions of "Particles:getParticleSpeed"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Get speed of particle <source lang="lua"> (number) (number) (number) (number), = Particles:getParticl...")
 
 
(10 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 ===
Get speed of particle
+
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>
'''i:''' (number) particle index ''''''<br/>
+
 
'''Returns''' (number) x vector<br/>
+
=== Parameters ===
'''Returns''' (number) y vector<br/>
+
'''i''': (number) particle index<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (number) x speed<br/>
 +
'''Returns''' (number) y speed<br/>
 +
'''Returns''' (number) z speed(if the particle set is 3D)<br/>
 
'''Returns''' (number) angular velocity<br/>
 
'''Returns''' (number) angular velocity<br/>
 
'''Returns''' (number) growth speed<br/>
 
'''Returns''' (number) growth speed<br/>
 +
 +
{{Particles}}

Latest revision as of 20:39, 21 September 2023