Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Using wind emitters to create motion for foliage and particle systems


Unity supports wind emitters with which we can create realistic effects for foliage and particles. Using them is really simple.

Getting ready

To follow this recipe, you need to have a particle system and a tree created with Unity's built—in Tree Creator. You can open the provided example project and go to the Chapter 07 Special effects\Recipe 06 Using wind emitters to create motion for foliage and particle systems directory. In the Example.unity scene there, you can find a tree and a simple particle system (falling leaves). Play the game to see the tree and particles moving with the wind.

Tree with a falling leaves particle system. Both animated with a WindZone

How to do it...

To use Unity's wind, follow these steps:

  1. Place the tree and the particle system in the scene.
  2. Create a new WindZone. To do so, go to the GameObject3D ObjectWind Zone option.
  3. The tree will move when you play the game, but the particle system needs to...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik