Affector3D QML Type

在粒子的生命周期内,影响因子会修改粒子的属性。更多

进口声明: import QtQuick3D.Particles3D
Qt 6.2
继承于

Node

继承人

Attractor3D,Gravity3D,PointRotator3D,Repeller3D,ScaleAffector3D, 以及Wander3D

属性

详细描述

Affector3D 是Gravity3DWander3DPointRotator3D 等影响器的抽象基类。

默认情况下,影响器会影响系统中的所有粒子,但这可以通过定义particles 列表来加以限制。如果系统有多个影响器,影响器的顺序可能会导致不同的结果,因为影响器会一个接一个地应用。

属性文档

已启用bool

如果启用设置为false ,则该影响因子不会改变任何粒子。通常这个值用于有条件地开启或关闭一个影响因子。

默认值为true


粒子列表<Particle3D>

该列表控制哪些逻辑粒子会受到影响。为空时,系统中的所有粒子都会受到影响。


系统ParticleSystem3D

该属性定义了影响因子的ParticleSystem3D 。如果系统是影响因子的直接父级,则无需定义此属性。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.