Difference between revisions of "B2.ParticleSystem:createParticle"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2015.06.30<br/>
+
'''<translate>Available since</translate>:''' Gideros 2015.06.30<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Creates new particle.
 
<translate>Creates new particle.
 
Accepts table with possible keys:
 
Accepts table with possible keys:
Line 14: Line 14:
 
(number) = b2.ParticleSystem:createParticle(particleDef)
 
(number) = b2.ParticleSystem:createParticle(particleDef)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''particleDef''': (table) <translate>table with particle data</translate> <br/>
 
'''particleDef''': (table) <translate>table with particle data</translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>particle id</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>particle id</translate><br/>

Revision as of 07:28, 24 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