A great way to enhance the visual effects of particle systems is for the particles to behave as if they are a real part of the 3D world. We can easily give this impression by enabling the Collision module, which makes particles change their direction of movement when they "hit" the colliders of 3D objects in the scene.
In this recipe, we'll create a scene containing some 3D objects and create two particle systems – one like a fountain of ping-pong balls and another like a gun firing many small balls in a line. Both sets of particles will bounce and change direction when they collide with the objects in the scene:
Figure 14.24 – The two bouncing particle systems in the collision scene we'll create in this recipe