Difference between revisions of "Particles:setParticleSpeed"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 
=== Description ===
 
=== Description ===
Set speed of particles
+
<translate>Set speed of particles</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Particles:setParticleSpeed(i,x,y,a,s)
 
  Particles:setParticleSpeed(i,x,y,a,s)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) particle index <br/>
+
'''i''': (number) <translate>particle index</translate> <br/>
'''x''': (number) x vector '''optional'''<br/>
+
'''x''': (number) <translate>x vector</translate> '''optional'''<br/>
'''y''': (number) y vector '''optional'''<br/>
+
'''y''': (number) <translate>y vector</translate> '''optional'''<br/>
'''a''': (number) angular velocity '''optional'''<br/>
+
'''a''': (number) <translate>angular velocity</translate> '''optional'''<br/>
'''s''': (number) growth speed '''optional'''<br/>
+
'''s''': (number) <translate>growth speed</translate> '''optional'''<br/>

Revision as of 13:38, 23 August 2018

Available since: Gideros 2016.06

Description

Set speed of particles

 Particles:setParticleSpeed(i,x,y,a,s)

Parameters

i: (number) particle index
x: (number) x vector optional
y: (number) y vector optional
a: (number) angular velocity optional
s: (number) growth speed optional