Difference between revisions of "B2.ParticleSystem:createParticle"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2015.06.30<br/> | '''Available since:''' Gideros 2015.06.30<br/> | ||
=== Description === | === Description === | ||
− | Creates new particle. | + | <translate>Creates new particle. |
Accepts table with possible keys: | Accepts table with possible keys: | ||
"flags", | "flags", | ||
Line 10: | Line 10: | ||
"alpha" | "alpha" | ||
− | and returns particle id | + | and returns particle id</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = b2.ParticleSystem:createParticle(particleDef) | (number) = b2.ParticleSystem:createParticle(particleDef) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''particleDef''': (table) table with particle data <br/> | + | '''particleDef''': (table) <translate>table with particle data</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) particle id<br/> | + | '''Returns''' (number) <translate>particle id</translate><br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2015.06.30
Description
Creates new particle. Accepts table with possible keys: "flags", "position", "velocity", "color", "alpha"
and returns particle id
(number) = b2.ParticleSystem:createParticle(particleDef)
Parameters
particleDef: (table) table with particle data
Return values
Returns (number) particle id