B2.ParticleSystem:createParticleGroup: Difference between revisions

From GiderosMobile
No edit summary
PaulR (talk | contribs)
No edit summary
Line 17: Line 17:
"lifetime"</translate>
"lifetime"</translate>
<source lang="lua">
<source lang="lua">
  b2.ParticleSystem:createParticleGroup(particleGoupDef)
  b2.ParticleSystem:createParticleGroup(particleGroupDef)
</source>
</source>
=== <translate>Parameters</translate> ===
=== <translate>Parameters</translate> ===
'''particleGoupDef''': (table) <translate>table with particle group data</translate> <br/>
'''particleGroupDef''': (table) <translate>table with particle group data</translate> <br/>

Revision as of 17:25, 19 November 2018


Available since: Gideros 2011.6
Class: b2.ParticleSystem

Description

Create group of multiple particles with same properties, that can be defined in table with: "flags" "groupFlags" "position" "angle" "linearVelocity" "angularVelocity" "color" "alpha" "strength" "shape" "lifetime"

 b2.ParticleSystem:createParticleGroup(particleGroupDef)

Parameters

particleGroupDef: (table) table with particle group data