WindComponent

overview

It is the base class for wind components.

 


public float Main

The main air volume.
The value that can be set is from 0.0 to 100.0.

 


public float Turbulence

Turbulence rate.
Sets how much the wind direction is disturbed.
At 0.0, the wind is always in a fixed direction.

 


public float Frequency

Turbulent speed.
You can adjust the speed at which Turbulence changes.

 


public Vector3 MainDirection

The current wind direction.
The direction is world space.

 


public float DirectionAngleX

Specify the wind direction by the angle of the X axis.
The axis is the local space of the wind component.

 


public float DirectionAngleY

Specify the wind direction by the angle of the Y axis.
The axis is the local space of the wind component.

 


public Vector3 AreaSize

XYZ size of the wind area.
This can only be specified in a box-shaped area.

 


public float AreaRadius

The radius of the wind area.
This can only be specified in spherical areas.

 


public PhysicsManagerWindData.DirectionType DirectionType

The direction of the wind area.
You can select unidirectional or radial.
This can only be specified in spherical areas.

 


public void SetAttenuation(float sval, float eval, bool useEval = true, float cval = 0.0f, bool useCval = false)

Change the wind attenuation rate.
This can only be specified if it is spherical and the direction is radial.