Time for action — using a ring to emit particles
Instead of a point or box we can even use a ring as emitter.
- Change the emitter type to
Ring:
emitter Ring {
- Define the
Ring
using width and height:height 50 width 50
- Now, to create a ring and not a circle, we need to define how much of the inner part shouldn't emit particles. Here we use percentages:
inner_height 0.9 inner_width 0.9
- The rest stays untouched, as follows:
emission_rate 50 direction 0 1 0 velocity 20 }
- Compile and run the application. Fly with the camera over the model instance and you should see where the ring emits particles.
What just happened?
We used the ring emitter to only emit particles ...
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.