Difference between revisions of "WindScript"
From Headbone Creative
(Initial page, includes API information and categories) |
Latest revision as of 04:36, 21 April 2013
This creates "Wind" area that applies a force to Rigidbodies that enter the area. If a ParticleSystem is attached to the object, it will set the velocity of the particles to the direction that the force will be applied.
Contents |
[edit] Public Variables
[edit] windDirection : Vector3
This is the direction that the force will be applied.
[edit] windForce : float
This is how powerful the force will be.
[edit] forceType : ForceMode
This is what kind of force to apply to the rigidbody.
[edit] applyForceOnEnter : bool
If set to true, the wind force will be applied when OnTriggerEnter is called.
[edit] applyForceOnStay : bool
If set to true, the wind force will be applied when OnTriggerStay is called.