Difference between revisions of "B2.ParticleSystem:createParticleGroup"
From GiderosMobile
Line 17: | Line 17: | ||
"lifetime"</translate> | "lifetime"</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | b2.ParticleSystem:createParticleGroup( | + | b2.ParticleSystem:createParticleGroup(particleGroupDef) |
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
− | ''' | + | '''particleGroupDef''': (table) <translate>table with particle group data</translate> <br/> |
Revision as of 18: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