Creating fluid simulations
As we mentioned previously, the best way to learn how to create particle systems is to keep looking for already-created particle systems, and then explore how people have used various system settings to create completely different simulations.
In this section, we will learn how to create the following effects using particle systems:
- A waterfall effect
- A bonfire effect
Let's start with the simplest one: the waterfall effect.
Creating a waterfall effect
In order to do this, follow these steps:
- Create a new particle system (GameObject | Effects | Particle System).
- Set Shape to Edge and its Radius to 5 in the Shape module. This will make the particles spawn along a line of emission:
Figure 7.22 – Edge shape
- Set Rate over Lifetime of the Emission module to
50
. - Set Start Size of the Main module to
3
and Start Lifetime to3
:Figure 7.23 – Main module settings
- Set Gravity Modifier of the Main module...