This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Physical Water

The Physical Water is a cuboid shaped area inside which water interaction effects are simulated. The Physical Water is usually used with water objects: you can add the Physical Water node together with a Water node to indicate an area where physical interactions will take place. Note, however, that you cannot simulate waves by using the Physical Water.Physical Water是一个长方体形状的区域,在其中模拟水的相互作用效果.Physical Water通常用于水对象:您可以将Physical Water节点与Water节点一起添加以指示将发生物理交互的区域。但是请注意,您不能使用Physical Water模拟波。

注意
The water will affect only objects, to which the Cloth body or the Rigid body are assigned. If the Rigid body is used, a shape should be also assigned. However, Cloth bodies cannot float in the Physical Water: they can only go with the water flow.水只会影响分配了Cloth主体或Rigid主体的对象。如果使用Rigid主体,则形状还应该分配。但是,Cloth主体不能漂浮在Physical Water中:它们只能随水流而行。

Also it is possible to generate particles in the contacts between the Rigid bodies and the Physical Water (in order to create, for example, foam on the water or water splashes). This requires that the ObjectParticles node must be added as a child node to the Physical Water node.同样也可能在Rigid体和Physical Water之间的接触中生成粒子(例如在水或飞溅的水上产生泡沫)。这要求必须将ObjectParticles节点作为子节点添加到Physical Water节点。

注意
You cannot generate particles in the contact between the water and the Cloth body, since these bodies cannot float in the water.您无法在水和Cloth物体之间的接触中生成粒子,因为这些物体无法在水中漂浮。

Bodies with different physical properties behave differently in the same Physical Water. Therefore, in addition to editing Physical Water parameters, you should adjust parameters of the physical body in order to get the expected result.具有不同物理特性的实体在同一Physical Water中的行为不同。因此,除了编辑Physical Water参数,您应该调整身体的参数以获得预期结果。

Physical bodies of objects participating in the contact with a Physical Water can be obtained via code. Also you can get the depth of the object submergence, the force applied to the contact, coordinates of the contact point and the relative velocity between the object and the Physical Water.可以通过代码获得参与与Physical Water接触的对象的物理体。您还可以获得对象浸入的深度,施加到接触的力,接触点的坐标以及对象与Physical Water之间的相对速度。

By using the Physical Water, you can create, for example, flows in the ocean.通过使用Physical Water,您可以在海洋中创建流。

See also
也可以看看#

Adding Physical Water
加水#

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

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

  3. Click somewhere in the world to place the Physical Water.单击世界上的某个地方以放置Physical Water

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

Editing Physical Water
编辑物理水#

In the Physical Water section (Parameters window -> Node tab), you can adjust the following parameters of the Physical Water:Physical Water部分(Parameters窗口→Node选项卡)中,可以调整Physical Water的以下参数:

Edit Size

Toggles the editing mode for the Physical Water node. When enabled, the Physical Water box sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.切换Physical Water节点的编辑模式。启用后,可以调整大小的Physical Water框边会用彩色矩形突出显示。要更改边的大小,请拖动相应的矩形。

Physical Mask Physical mask. The physical mask of the Physical Water must match the Physical mask of the physical object. Otherwise, the Physical Water won't affect the object.Physical掩码。 Physical Water的物理掩码必须比赛物理对象的Physical掩码。否则,Physical Water将不会影响该对象。
Size Size of the Physical Water box along the axes in units.沿轴的Physical Water框的大小(单位)。
Velocity Velocity of the flow in the Physical Water along the axes.沿轴在Physical Water中的流速。
Density

Density of the Physical Water. It determines buoyancy of objects that float in the Physical Water. The higher the value, the higher is the buoyancy of the object. The lower the water density, the deeper the object submerges into water.Physical Water的密度。它确定漂浮在Physical Water中的对象的浮力。值越高,对象的浮力越高。水密度越低,物体浸入水中的深度就越大。

注意
The density and the mass of the physical body also affect buoyancy of the object.密度大量的身体的浮力也会影响物体的浮力。
Physical Water density = 10物理水密度= 10
Physical Water density = 25物理水密度= 25
Linear Damping Value indicating how much the linear velocity of the objects decreases when they get into the Physical Water. The higher the value is, the lower the linear velocity will be.指示对象进入Physical Water时线速度降低多少的值。值越高,线速度将越低。
Angular Damping Value indicating how much the angular velocity of the objects decreases when they get into the Physical Water. The higher the value is, the lower the angular velocity will be.指示对象进入Physical Water时角速度减小多少的值。值越高,角速度将越低。
最新更新: 2024-08-16
Build: ()