3D Particle System Overview
The particle system is the basis of the game engine's special effects. It can be used to simulate natural phenomena such as fire, smoke, water, clouds, snow, and fallen leaves. It can also be used to simulate abstract visual effects such as luminous tracks and speed lines.
Basic Structure
The basic unit of a particle system is a particle. A particle generally has attributes such as position, size, color, velocity, acceleration, and life cycle. In each frame, the particle system generally performs the following steps:
- Generate new particles and initialize.
- Delete particles beyond the life cycle.
- Update the dynamic properties of particles.
- Render all valid particles.
The general particle system will consist of the following parts:
- Emitter, used to create particles and initialize particle properties.
- Influencer, used to update the properties of particles.
- Renderer, render particles.
- Particle class, which stores the properties of particles.
- The particle system class manages the above modules.
Adding the particle system
There are two ways to add the particle system:
Select the node in the Hierarchy panel and click the Add Component button on the Inspector panel, as shown below:
You can also right-click the Hierarchy panel and select Create -> Effects-> Particle System to create a node with the particle system component, as shown below:
Contents
The particle system consists of the following two main parts: