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版本。

粒子挡断体积

Particles Spacer is a volumetric field that has no visual representation, but physically interacts with Particle Systems (other objects are not affected). The Particles Spacer is used to cut out particles generated by a Particle System from a certain volume, for example, to avoid rendering of rain or snow inside a car or under a bridge. It can have a box, cylinder, capsule, sphere, or ellipse shape and can be arbitrarily positioned or rotated to cover the necessary area.Particles Spacer 是一个没有视觉表示的体积场,但物理上与 Particle System交互(其他对象不受影响)。Particles Spacer用于从一定体积中挡断由粒子系统产生的粒子,例如,避免渲染汽车内或桥下的雨或雪。它可以是盒子、圆柱体、胶囊、球体或椭圆形状,并且可以任意定位或旋转以覆盖必要的区域。

See also另请参阅#

Adding Particles Spacer添加粒子挡断体积#

To add a Particles Spacer to the world via UnigineEditor, do the following:要通过UnigineEditor添加一个Particles Spacer到世界,请执行以下操作:

  1. In the Main Menu, choose Create -> Particle System -> Particles Spacer.在主菜单中选择Create -> Particle System -> Particles Spacer

  2. Place the Particles Spacer in the world to cover the area where particles are to be cut out:Particles Spacer在世界上覆盖粒子被挡断的区域。

    注意
    Make sure that the Spacer interaction flag is set for materials applied to grass or water.确保为应用于草或水的材质设置了Spacer interaction标志。

Editing Particles Spacer编辑粒子挡断体积#

In the Particles Field Spacer section (Parameters window -> Node tab), the following parameters of the Particles Spacer can be adjusted:Particles Field Spacer部分(Parameters窗口→Node选项卡)中,Particles Spacer的以下参数可以调整:

Adjusting Spacer Form调整垫片形状#

Shape Type Shape of the Particles Field Spacer: box, cylinder, capsule, sphere, or ellipse.Particles Field Spacer的形状: 方块、圆柱体、胶囊、球体椭圆的形状。
Size

Size of the Particles Field Spacer along the X, Y, and Z axes, in units.Particles Field Spacer沿着X, YZ轴的大小,以单位。

注意
In case of an ellipse shape each component of the vector sets a radius along the corresponding axis.如果设置了椭圆形状,则矢量的每个分量沿相应轴设置半径。
Radius

Radius of the Particles Field Spacer, in units (available for capsule, cylinder, and sphere shapes).Particles Field Spacer半径,以单位(可用于胶囊,汽缸,和 球体形状)。

Height

Height of the Particles Field Spacer, in units (available for capsule, and cylinder shapes).Particles Field Spacer的高度,单位(可用于胶囊圆柱体形状)。

Interaction Particle Mode

Interaction mode for the Particles Field Spacer. Interaction can be triggered on a contact of the spacer either with particle's center position or with its bounding box (this can be useful in case of length particles, for example).Particles Field Spacer交互模式。交互可以触发挡断体积的接触与粒子的中心位置或与其边界框(例如,这可能是有用的长度的粒子)。

Setting Bit Masks设置位掩码#

Bit masks listed below enable you to fine tune interactions and functionality of a Particles Field to achieve the desired effect and optimize performance.下面列出的位掩码使您能够微调 Particles Field 的相互作用和功能,以达到预期的效果和优化性能。

Particles Field Mask Bit mask enabling you to control interactions of the Particles Spacer with particles. The Spacer will affect particles generated by a Particle System only if they both have matching masks.位掩码使您能够控制Particles Spacer与粒子的相互作用。只有当粒子系统生成的粒子都具有匹配掩码时,Spacer才会影响它们。
Viewport Mask A Viewport mask. A bit mask for rendering the Particles Spacer in the current viewport. For the Particles Spacer to be rendered into the viewport, its mask should match the camera Viewport mask (at least one bit). This can be used to selectively disable Spacer functionality for a certain camera view without disabling the Spacer itself (e.g. it is not necessary to cut out rain or snow inside a car, when the car is viewed from above).Viewport 掩码。 用于在当前视口中渲染 Particles Spacer 的位掩码。 对于要渲染到视口中的 Particles Spacer,其掩码应与相机 Viewport 掩码相匹配 (至少一位)。 这可用于有选择地禁用特定摄像机视图的 Spacer 功能,而无需禁用 Spacer 本身(例如,当 汽车是从上面看的)。
最新更新: 2023-07-06
Build: ()