WindComponent

Author: GameDevGuy

Description
This is a very basic component that will apply constant force to objects within a "zone". Useful for wind, fans, or other scenarios where you need to push an object in the X, Y, or both. Please note both the code and this wiki are both a WIP. Feedback is welcome.

Requirements
Unity 4.3

Usage
1. Create an empty game object

2. Add a Collider2D to the empty object. I used a standard Box Collider 2D to create an isolated square that applies "wind"

3. Add this WindComponent to the empty object, then adjust the Force (Vector2). You can adjust this in the editor or in the script, as it is a public property

Note: Only works on game objects that have the Rigid Body 2D and Collider 2D components