This project has moved and is read-only. For the latest updates, please go here.

SimpleWindForce Controller

Apr 19, 2011 at 3:50 AM

I am trying to use the SimpleWindForce controller to do a wave push type abillity.  It should shoot out from the player and move dynamic objects (i.e a block). My problem is that it is moving my player as well.  Does anyone know if it is possible to have the wind force ignore certain dynamic bodies in the world?  Looking through its code there doesn't seem to be but I thought their may be a way around it.

Thanks in advance

Apr 19, 2011 at 10:22 AM

You can set body.ControllerFilter.IgnoreController(...) to ignore certain controllers.

Apr 19, 2011 at 10:26 AM

Hey there,

keep in mind that the SimpleWindForce (along with the whole forces system) is currently WIP still. I have been thinking about maintaining include/exclude lists similar to the way forces are handled in 3dsmax for example. Sadly i have not really been able to spend time on the forces system recently, but i am working on changing that.


Apr 20, 2011 at 5:27 AM

I just modified the SimpleWindForce class to to allow me to ignore bodies when it calls ApplyForce(), it's probably not the best implementation but it works