This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Полезные советы
Программирование на C#
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm (Experimental)
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
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
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Physical Wind

A physical wind is a cuboid shaped area that simulates the blowing wind inside of it. The wind velocity can gradually decrease up to box boundaries.

The wind will affect only an object that meets the following requirements:

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

The wind differently affects objects with different physical properties. Therefore, in addition to editing physical wind parameters, you should adjust parameters of the physical body.

For example, if you place a node, to which the cloth body is assigned, inside the physical wind node, the node will be "wave in the wind" differently depending on the cloth body mass:

Wind velocity = (2.0,4.0,2.0); Body mass = 1.0
Wind velocity = (2.0,4.0,2.0); Body mass = 8.0

See also#

  • The PhysicalWind class to edit physical wind nodes via API
  • A set of samples located in the data/samples/physicals folder:
    1. wind_00
    2. wind_01
    3. wind_02
    4. wind_03
    5. wind_04
    6. wind_05
  • The fragment from the video tutorial on physics demonstrating creation of wind

Adding Physical Wind#

To add a physical wind to the scene via UnigineEditor:

  1. Run the project with UnigineEditor.
  2. On the Menu bar, click Create -> Physics -> Physical Wind.

  3. Click somewhere in the world to place the physical wind node.

The new physical wind node will be added to UnigineEditor and you will be able to edit it via the Parameters window. By default, the size of the node is 1×1×1 unit.

Editing Physical Wind#

In the Physical Wind section (Parameters window -> Node tab), you can adjust the following parameters of the physical wind:

Edit Size Toggles the editing mode for the physical wind node. When enabled, the physical wind box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.

Physical Mask Physical mask. The physical mask of the physical wind must match the physical mask of the physical object. Otherwise, the physical wind, inside which the wind flows with the specified velocity, won't affect the object.
Size Size of the physical wind box along the axes in units.
Threshold Threshold distance along the axes. The threshold determines the distance of gradual change from zero to full wind velocity. These values are relative to the size of the physical wind box. It means that the threshold values should be less than the size of the physical wind box.

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

Velocity Velocity of the physical wind flow along the axes.
Linear damping Value indicating how much the linear velocity of the objects decreases when they get inside the wind node. The higher the value is, the lower the linear velocity will be.
Angular damping Value indicating how much the angular velocity of the objects decreases when they get inside the wind node. The higher the value is, the lower the angular velocity will be.
Last update: 24.11.2020
Build: ()