Difference between revisions of "B2.ParticleSystem:createParticle"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2015.06.30<br/>
+
'''Available since:''' Gideros 2015.06.30<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.ParticleSystem|b2.ParticleSystem]]<br/>
+
'''Class:''' [[Special:MyLanguage/b2.ParticleSystem|b2.ParticleSystem]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Creates new particle.
+
=== Description ===
 +
Creates a new particle.
 
Accepts table with possible keys:
 
Accepts table with possible keys:
"flags",
+
*''flags''
"position",
+
*''position''
"velocity",
+
*''velocity''
"color",
+
*''color''
"alpha"
+
*''alpha''
 
+
and returns the 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>
=== <translate>Parameters</translate> ===
+
 
'''particleDef''': (table) <translate>table with particle data</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''particleDef''': (table) table with particle data <br/>
'''<translate>Returns</translate>''' (number) <translate>particle id</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (number) particle id<br/>
 +
 
 +
{{B2.ParticleSystem}}

Revision as of 21:20, 17 February 2020