视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
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
创建内容
Content Optimization
Materials
Art Samples
Tutorials

Physical Force

A Physical Force is a spherical object with a force that is applied to its center and attenuates as follows: Physical Force是一个球形物体,其力被施加到其中心,并且衰减如下:

Here:这里:

Name Description
distancedistance Distance between the sphere center and the object.球心与物体之间的距离。
radiusradius Radius of the sphere in which the force is applied.施加力的球体的半径。
attenuationattenuation Force attenuation factor.力衰减系数。

All physical bodies and particles that are within the radius of the force are pulled up to or away from the center of the Physical Force node. Also the bodies and particles can be rotated around the center of the Physical Force node.力半径范围内的所有物理物体和粒子都被拉到Physical Force节点的中心或远离其中心。物体和粒子也可以是旋转的围绕Physical Force节点的中心。

注意
  • The Physical Force will affect particles only if their physical mass is nonzero. The physical mass for the Particles object can be set on the Particles tab of the Parameters window.仅当粒子的物理质量不为零时,Physical Force才会影响粒子。这物质质量可以在Parameters窗口的Particles选项卡上设置Particles对象的设置。
  • The Physical Force can affect only a Cloth, a Rope, or a Rigid body. If the Rigid body is used, a shape should be also assigned.Physical Force只能影响ClothRopeRigid主体。如果使用Rigid主体,则形状还应该分配。

See also也可以看看#

Adding Physical Force增加体力#

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

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

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

The new Physical Force node will be added to UnigineEditor, and you will be able to edit it via the Parameters window. By default, the radius of the node is 1.新的Physical Force节点将被添加到UnigineEditor,您将能够通过Parameters窗口对其进行编辑。默认情况下,节点的半径为1

Editing Physical Force编辑体力#

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

Edit Size

Toggles the editing mode for the Physical Force node. When enabled, the radius of applying the physical force can be changed: each axis is highlighted with the colored circle. To change the radius along the axis, drag the corresponding circle.切换Physical Force节点的编辑模式。启用后,可以更改施加物理力的半径:每个轴以彩色圆圈突出显示。要更改沿轴的半径,请拖动相应的圆。

Physical Mask Physical mask. The physical mask of the Physical Force must match the Physical mask of the physical object. Otherwise, the physical force won't affect the object.Physical掩码。 Physical Force的物理掩码必须比赛物理对象的Physical掩码。否则,物理力将不会影响对象。
Radius Radius for applying the physical force in units.半径,以单位为单位施加物理力。
Attenuation Attenuation factor indicating how much the physical force decreases when the objects move away from the force center.衰减因子,指示当对象从力中心移开时,物理力会减少多少。
Attractor Attraction force applied to objects in the Physical Force radius. If a positive value is provided, objects will be pulled away from the force point. If a negative value is provided, objects will be pulled up to the force point.施加在Physical Force半径范围内的对象的吸引力。如果提供正值,则物体将被拉离受力点。如果提供负值,则物体将被拉至受力点。
Rotator Rotation force that is applied to objects in the Physical Force radius. If a positive value is provided, objects will be rotated clockwise. If a negative value is provided, objects will be rotated counter-clockwise.施加到Physical Force半径内的对象的旋转力。如果提供正值,则对象将顺时针旋转。如果提供负值,则对象将逆时针旋转。
最新更新: 2021-04-29
Build: ()