Creating a force like a fan?

Jun 12, 2011 at 9:33 AM

I'm trying to create a forcefield type object which will mimic a fan. basically think of a fan, everything in front of it will be pushed away from it.

Any ideas how I should go about doing this? I'm thinking of using raycasts but that seems like a silly way of doing it.

Jun 15, 2011 at 6:12 AM
Edited Jun 15, 2011 at 6:13 AM

You could create a Rectangle (not a body!) around your fan, that when a body intersects the rectangle, a force would be applied to it away from the fan.

I wouldn't use a body for it as it isn't really a "collision."

Jun 16, 2011 at 9:45 AM

Probably you should check the gravity controller demo. It seems to do what you need.