Only emitting from one point is boring, using a box is much more fun.
Change the emitter type from
Point
toBox:
emitter Box {
Define the box in which the particles should be created:
height 50 width 50 depth 50
Let the emitter create 10 particles per second and they should move up with a speed of 20:
emission_rate 10 direction 0 1 0 velocity 20 }
Use the new particle system. Compile and run the application. You should see that particles are created all around the Sinbad instance and fly upwards.
We used another type of emitter, in this case, the Box
emitter. We defined a box, and the emitter used random points inside this box as the starting position for the created particles. This emitter can be used to create particles systems that don't emit particles from exactly one point, but rather from an area. If we just need a plane where particles are emitted or even a line, we only need to set the box parameters accordingly.