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.
Place down the Tornado entity by doing the following:
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.
The Tornado entity is a special entity that applies multiple forces into a defined radius around the entity. These forces are the same forces as described previously with SpinImpulse, UpImpulse, and AttractionImpulse. You can also add in a WanderSpeed, which will allow the tornado to wander around in a random direction that will still follow the terrain.
18.226.177.86