Difference between revisions of "B2.ParticleSystem"
Line 3: | Line 3: | ||
'''Available since:''' Gideros 2015.06.30<br/> | '''Available since:''' Gideros 2015.06.30<br/> | ||
=== Description === | === Description === | ||
− | Defines particle system in box2d world using Liquid fun | + | Defines particle system in box2d world using Liquid fun{|- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
Line 36: | Line 17: | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
− | [[b2.ParticleSystem.FLAG_COLOR_MIXING]] | + | [[b2.ParticleSystem.FLAG_COLOR_MIXING]]<br/> |
− | [[b2.ParticleSystem.FLAG_ELASTIC]] | + | [[b2.ParticleSystem.FLAG_ELASTIC]]<br/> |
− | [[b2.ParticleSystem.FLAG_POWDER]] | + | [[b2.ParticleSystem.FLAG_POWDER]]<br/> |
− | [[b2.ParticleSystem.FLAG_SPRING]] | + | [[b2.ParticleSystem.FLAG_SPRING]]<br/> |
− | [[b2.ParticleSystem.FLAG_TENSILE]] | + | [[b2.ParticleSystem.FLAG_TENSILE]]<br/> |
− | [[b2.ParticleSystem.FLAG_VISCOUS]] | + | [[b2.ParticleSystem.FLAG_VISCOUS]]<br/> |
− | [[b2.ParticleSystem.FLAG_WALL]] | + | [[b2.ParticleSystem.FLAG_WALL]]<br/> |
− | [[b2.ParticleSystem.FLAG_WATER]] | + | [[b2.ParticleSystem.FLAG_WATER]]<br/> |
− | [[b2.ParticleSystem.FLAG_ZOMBIE]] | + | [[b2.ParticleSystem.FLAG_ZOMBIE]]<br/> |
|} | |} |
Revision as of 09:12, 23 August 2018
Supported platforms:
Available since: Gideros 2015.06.30
Description
Defines particle system in box2d world using Liquid fun{|- | style="width: 50%;"|
Methods
b2.ParticleSystem:containsParticle -
b2.ParticleSystem:createParticle - create new particle
b2.ParticleSystem:createParticleGroup - create group of particles
b2.ParticleSystem:destroyParticle - destroy particle by id
b2.ParticleSystem:destroyParticles -
b2.ParticleSystem:getParticleCount -
b2.ParticleSystem:getParticleGroupList -
b2.ParticleSystem:setTexture - set texture to particles
| style="width: 50%;"|
Events
Constants
b2.ParticleSystem.FLAG_COLOR_MIXING
b2.ParticleSystem.FLAG_ELASTIC
b2.ParticleSystem.FLAG_POWDER
b2.ParticleSystem.FLAG_SPRING
b2.ParticleSystem.FLAG_TENSILE
b2.ParticleSystem.FLAG_VISCOUS
b2.ParticleSystem.FLAG_WALL
b2.ParticleSystem.FLAG_WATER
b2.ParticleSystem.FLAG_ZOMBIE
|}