Core API Reference: World Create Entity

From Color Infection Wiki

Jump to: navigation, search


Contents


Create Explosion

Create an explosion. The effect is the same as a bomb explosion.

Input Parameters:

Explosion X
explosion position x
Explosion Y
explosion position y
Number of Particles
how many particles to be created. Valid value range: [4, 100]
Life
how many steps to die for particles
Particle Density
particle density
Particle Restitution
particle restitution
Particle Speed
initial speed of created particles
Particle Color
the color of particles
Are Particles Visible
whether or not the particles visilbe
Particle Collision Category
the ccat for particles

Output Parameters:

Number of Created Particles
how many particles are created. To make the explosion symmetrically, the value may be a little different with the input "Number of Particles" parameter.
Personal tools