This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine.PhysicalWind Class

Inherits: Physical

A PhysicalWind class is used to simulate a box-shaped area inside of which the wind is blowing. The wind gradually decreases up to the box boundaries.

Notice
A physical wind will affect only an object that meets the following requirements:
  • The object's bounds must be inside the physical wind box.
  • A cloth body or a rigid body must be assigned to the object. If the rigid body is used, a shape should be also assigned.

See Also#

  • An article on Physical Wind
  • A set of samples located in the <UnigineSDK>/data/samples/physicals folder:
    1. wind_00
    2. wind_01
    3. wind_02
    4. wind_03
    5. wind_04
    6. wind_05

PhysicalWind Class

Properties

vec3 Velocity#

The current velocity of the physical wind flow along the axes.
set
Sets the velocity of the physical wind flow along the axes.
set value - Velocity in units per second.

vec3 Threshold#

The current threshold distance values along the coordinates axes relative to the wind node size (that is, inside of it). It determines the area of gradual change from zero to full wind velocity. See also setThreshold().
set
Sets the threshold distance values along the coordinates axes relative to the wind node size (that is, inside of it). It determines the area of gradual change from zero to full wind velocity.

The threshold distance values form an invisible box, inside which the wind blows with full velocity:

set value - Threshold distance in units.

vec3 Size#

The current size of the physical wind node.
set
Sets the size of the physical wind node.
set value - Wind box size in units.

float LinearDamping#

The current value indicating how much the linear velocity of the objects decreases when they get inside the wind node.
set
Sets a value indicating how much the linear velocity of the objects decreases when they get inside the wind node.
set value - Linear damping value. If a negative value is provided, 0 will be used instead.

float AngularDamping#

The current value indicating how much the angular velocity of the objects decreases when they get inside the physical wind node.
set
Sets a value indicating how much the angular velocity of the objects decreases when they get inside the wind node.
set value - Angular damping value. If a negative value is provided, 0 will be used instead.

Members


static PhysicalWind ( vec3 size ) #

Constructor. Creates a physical wind node of the specified size.

Arguments

  • vec3 size - Wind box size in units.

static PhysicalWind Cast ( Node node ) #

Casts a PhysicalWind out of the Node instance.

Arguments

  • Node node - Node instance.

Return value

PhysicalWind instance.

static PhysicalWind Cast ( Physical base ) #

Casts a PhysicalWind out of the Physical instance.

Arguments

  • Physical base - Physical instance.

Return value

PhysicalWind instance.

static int type ( ) #

Returns the type of the node.

Return value

Physical type identifier.
Last update: 2019-08-16
Build: ()