IrrAddParticleEmitter

section index

## NAME

IrrAddParticleEmitter - Add an ParticleEmitter

## SYNOPSIS

*emitter.l = IrrAddParticleEmitter(*particleSystem.l, *properties.IRR_PARTICLE_EMITTER)

## INPUTS

*properties.IRR_PARTICLE_EMITTER | - | Pointer t a filled Structure

## FUNCTION

Adds a Emitter to the ParticleSystem. You have to fill the Structure IRR_PARTICLE_EMITTER to define the behavior of the Emitter. (This is while it s are too many Parameters to make it as parameters)

## EXAMPLE

       Define explosionEmitter.IRR_PARTICLE_EMITTER
       With explosionEmitter
           \min_box_x = -2
           \min_box_y = 0
           \min_box_z = -2
           \max_box_x = 2
           \max_box_y = 1
           \max_box_z = 2
           \direction_x = 0.006
           \direction_y = 0.06
           \direction_z = 0.006
           \min_paritlcles_per_second = 60
           \max_paritlcles_per_second = 80
           \min_start_color_red = 255
           \min_start_color_green = 255
           \min_start_color_blue = 255
           \max_start_color_red = 255
           \max_start_color_green = 255
           \max_start_color_blue = 255
           \min_lifetime = 500
           \max_lifetime = 700
           \max_angle_degrees = 359
       EndWith

       ; finally we add this particle emitting object to the particle system
       *em.l = IrrAddParticleEmitter( *ParticlesNode, @explosionEmitter )

## RESULT

A pointer to a Emitter.