This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Physical Wind

The 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.Physical Wind是一个长方体形状的区域,模拟其中的吹风。风速可以逐渐减少直到盒子的边界。

The wind will affect only an object that meets the following requirements:风只会影响符合以下要求的物体:

  • The object's bounds must be inside the Physical Wind box.对象的边界必须在Physical Wind框内。
  • A physical body must be assigned to the object.一种身体必须分配给该对象。

    注意
    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.Physical Wind只能影响Cloth主体或Rigid主体。如果使用Rigid主体,则形状还应该分配。

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.风对具有不同物理属性的对象的影响不同。因此,除了编辑Physical Wind参数,您应该调整身体的参数。

For example, if you place a node, to which the Cloth body is assigned, inside the Physical Wind node, the node will "wave in the wind" differently depending on the Cloth body mass: 例如,如果将一个已分配了Cloth主体的节点放置在Physical Wind节点内,则该节点将根据“ Cloth”主体而不同地“随风摇曳”大量的

Wind velocity = (2.0,4.0,2.0); Body mass = 1.0风速=(2.0,4.0,2.0);体重= 1.0
Wind velocity = (2.0,4.0,2.0); Body mass = 8.0风速=(2.0,4.0,2.0);体重= 8.0

See also也可以看看#

  • The PhysicalWind class to edit Physical Wind nodes via API通过API编辑Physical Wind节点的PhysicalWind
  • A set of samples located in the data/samples/physicals folder:位于data/samples/physicals文件夹中的一组样本:

    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 the wind.来自的片段演示风的物理视频教程。

Adding Physical Wind增加物理风#

To add a Physical Wind to the scene via UnigineEditor:通过UnigineEditor将Physical Wind添加到场景中:

  1. Run the project with UnigineEditor.跑步UnigineEditor的项目。
  2. On the Menu bar, click Create -> Physics -> Physical Wind.在菜单栏上,单击Create -> Physics -> Physical Wind

  3. Click somewhere in the world to place the Physical Wind node.单击世界上的某个位置以放置Physical Wind节点。

A 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.新的Physical Wind节点将被添加到UnigineEditor,您将能够通过Parameters窗口对其进行编辑。默认情况下,节点的大小为1×1×1单位。

Editing Physical Wind编辑物理风#

In the Physical Wind section (Parameters window -> Node tab), you can adjust the following parameters of the Physical Wind:Physical Wind部分(Parameters窗口→Node选项卡)中,可以调整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 Wind节点的编辑模式。启用后,可以调整大小的Physical Wind框边会用彩色矩形突出显示。要更改边的大小,请拖动相应的矩形。

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.Physical掩码。 Physical Wind的物理掩码必须比赛物理对象的Physical掩码。否则,风以指定速度在其中流动的Physical Wind不会影响对象。
Size Size of the Physical Wind box along the axes in units.沿轴的Physical Wind框的大小(单位)。
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.沿轴的阈值距离。该阈值确定从零到全风速逐渐变化的距离。这些值是相对于Physical Wind框的大小。这意味着阈值应小于Physical Wind框的大小。

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.Physical Wind的速度沿轴流动。
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.指示对象进入风节点时其角速度减小多少的值。值越高,角速度将越低。

注意
Angular damping parameter affects only objects with a Cloth body assigned.Angular damping参数仅影响具有布身已分配。
最新更新: 2023-06-23
Build: ()