how to make wind

im wondering how you would go a bout making wind a being able to control it happens with a mouse click?

3 Answers

3

I do not really know what you want to do. Are you using particles? Physics? Something else?

im not really sure what i should do all im trying to do is to be able to control an sphere by a wind like force, sphere has a rigbody on it and its mass is set to 1 if that helps.

Try the Constant Force component, under Components>Physics.

how would i set it so that every time i left click this would happen?

Basically, in the objects Update function when the left mouse button is pressed add a Constant Force.

I like using AddExplosionForce, as suggested by someone else. Add a series of them and you can get quite a wind effect.

I wasn't aware of this and it came in really handy. AddForce wasn't achieving quite the result that I wanted, and AddExplosionForce did the trick. Thanks!

Ok it is really simple all you have to do is go to game object and click Create other and at the bottom of the list it should say "Wind Zone’ click that and then there will be an blue arrow with a fan icon.

FYI, this only affect the Terrain environment not a Gameobject