WindScript

From Headbone Creative
Jump to: navigation, search

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

Public Variables

windDirection : Vector3

This is the direction that the force will be applied.

windForce : float

This is how powerful the force will be.

forceType : ForceMode

This is what kind of force to apply to the rigidbody.

applyForceOnEnter : bool

If set to true, the wind force will be applied when OnTriggerEnter is called.

applyForceOnStay : bool

If set to true, the wind force will be applied when OnTriggerStay is called.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox