In my game I am working on the user controls the wind with the mouse. They move the mouse pointer to the location they want the wind to blow from and then they click and hold the left mouse button to make the wind blow. The wind is used to blow a small ball around the screen. The wind power should taper off as the distance between the wind and the ball increases.
I am having trouble with Box2D's ApplyForce function because I don't know what to pass into it in order to make the ball move in the correct direction. Also, I was wondering if someone could point me in the right direction on how to make the wind less powerful as the distance from wind to ball increases.
Thanks in advance,
lobo235
I am having trouble with Box2D's ApplyForce function because I don't know what to pass into it in order to make the ball move in the correct direction. Also, I was wondering if someone could point me in the right direction on how to make the wind less powerful as the distance from wind to ball increases.
Thanks in advance,
lobo235