Time for action — using a box emitter

Only emitting from one point is boring, using a box is much more fun.

  1. Change the emitter type from Point to Box:
    emitter Box
    {
    
  2. Define the box in which the particles should be created:
    height 50
    width 50
    depth 50
    
  3. 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
    }
    
  4. 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.
    Time for action — using a box emitter

What just happened?

We used another type of emitter, in this case, the Box emitter. We defined a box, and the emitter used ...

Get Ogre 3D 1.7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.