Time for action — some new parameters
We will add some new parameter.
- Add to the point emitter the following three new parameters:
angle 30 time_to_live 10 color 1 0 0 1
- Compile and run the application. You should see red particles flying in slightly different directions.
What just happened?
We added three parameters that changed the behavior of our particle system. Now the particles are red and fly in different directions. The parameter angle
defines how many degrees each created particle can differentiate from the given direction. Ogre 3D used a random generator to generate the direction, which is in the given range. Because the direction can be moved ...
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.