Tornadoes
Another fun physics entity is the Tornado. In this recipe, we will look at placing one down and allowing this tornado to roam around the level. We will also demonstrate it picking up and throwing around multiple AI Grunts.
Getting ready
Open
My_Level.cry
within the SandboxPlace down a dozen AI Grunts
How to do it...
Place down the Tornado entity by doing the following:
In the RollupBar, click on the Entities button.
Under the Environment section, select Tornado.
The default values for the tornado will not be sufficient to lift up the AI Grunt, so we will have to adjust the following values:
SpinImpulse = 40
UpImpulse = 40
AttractionImpulse = 100
With these properties set, the next time we enter into game mode, the tornado will start to wander around and pick up and toss the AI Grunts. Even the player himself can get caught in this and be pulled around by the tornado.
How it works...
The Tornado entity is a special entity that applies multiple forces into a defined radius around the...