Affector3D QML Type
作用器会在粒子的生命周期内修改其属性。更多内容...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: | |
| Inherited By: | Attractor3D, Gravity3D, PointRotator3D, Repeller3D, ScaleAffector3D, and Wander3D |
属性
详细说明
Affector3D 是诸如Gravity3D 、Wander3D 和PointRotator3D 等影响器的抽象基类。
默认情况下,影响器会作用于系统中的所有粒子,但可以通过定义particles 列表来限制其作用范围。如果系统中存在多个影响器,由于影响器是依次应用的,因此其顺序可能会导致不同的结果。
属性文档
enabled : bool
如果“是否启用”设置为false ,则该影响器不会改变任何粒子。通常,这用于有条件地启用或禁用影响器。
默认值为true 。
particles : List<Particle3D>
此列表用于控制哪些逻辑粒子会受到影响。若为空,则系统中的所有粒子都会受到影响。
system : ParticleSystem3D
该属性定义了影响者的ParticleSystem3D 。如果system是影响者的直接父对象,则无需定义此属性。
© 2026 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.