粒子偏转面
Particles Deflector is a surface field that has no visual representation, but physically interacts with Particle Systems (other objects are not affected) blocking the way for particles and making them bounce off the deflector's surface. Depending on the specified size, it can be either rectangular or square, plus it can be arbitrarily positioned or rotated to cover the necessary area.Particles Deflector 是一个表面场,没有视觉表示,但物理上与粒子系统(其他对象不受影响)相互作用,阻挡粒子的道路,使它们从偏转面的表面反弹。根据指定的尺寸,它可以是矩形或正方形,并且可以任意放置或旋转以覆盖必要的区域。
Deflectors are one-sided, meaning the particles can only interact with one side (e.g., when falling on a deflector from above, while freely passing through them from the opposite side).偏转面是单边,这意味着粒子只能与一侧相互作用(例如,当从上方落在偏转面上时,而从相反的一侧自由通过它们)。
See also另请参阅#
- The ParticlesFieldDeflector class to manage Particles Deflectors via API通过API管理Particles Deflectors的ParticlesFieldDeflector类
Adding Particles Deflector添加粒子偏转面#
To add a Particles Deflector to the world via UnigineEditor, do the following:要通过UnigineEditor添加一个Particles Deflector到世界,请执行以下操作:
-
In the Main Menu, choose Create -> Particle System -> Particles Deflector.在主菜单中,选择Create -> Particle System -> Particles Deflector。
-
Place the Particles Deflector in the world to cover the area where particles are to be cut out:将Particles Deflector放置在世界中以覆盖要切割颗粒的区域。
Make sure that the Spacer interaction flag is set for materials applied to grass or water.确保为应用于草或水的材质设置了Spacer interaction标志。
Editing Particles Deflector编辑粒子偏转面#
In the Particles Field Deflector section (Parameters window -> Node tab), the following parameters of the Particles Deflector can be adjusted:在Particles Field Deflector部分(Parameters窗口→Node选项卡)中,Particles Deflector的以下参数可以调整:
Adjusting Deflector Form调整导流板形状#
Setting Bit Masks设置位掩码#
The 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 Deflector with particles. The Deflector will affect particles generated by a Particle System only if they both have matching masks.位掩码使您能够控制Particles Deflector与粒子的相互作用。只有当粒子系统生成的粒子都具有匹配掩码时,Deflector才会影响它们。 |
---|---|
Viewport Mask | A Viewport mask. A bit mask for rendering the Particles Deflector in the current viewport. For the Particles Deflector 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 Deflector functionality for a certain camera view without disabling the Deflector 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 Deflector 的位掩码。 对于要渲染到视口中的 Particles Deflector,其掩码应与相机 Viewport 掩码相匹配 (至少一位)。 这可用于有选择地禁用特定摄像机视图的 Deflector 功能,而无需禁用 Deflector 本身(例如,当 汽车是从上面看的)。 |