Attractor QML Type
粒子を特定の点に引き寄せます。詳細...
| Import Statement: | import QtQuick.Particles |
| Inherits: |
プロパティ
- affectedParameter : enumeration
- pointX : real
- pointY : real
- proportionalToDistance : enumeration
- strength : real
詳細説明
他のアフェクタと同様に、Attractor は影響を受ける領域を表す標準的なプロパティ x、y、幅、高さを持ちます。Attractor アイテムのサイズと位置によって、影響を受けるパーティクルが決まります。
アトラクト ポイントのサイズは常に 0x0 で、その位置はpointX とpointY プロパティで指定されます。
プロパティのドキュメント
affectedParameter : enumeration
直接影響を受ける粒子の属性。
| 定数 | 説明 |
|---|---|
Attractor.Position | 位置 |
Attractor.Velocity | 速度 |
Attractor.Acceleration | 加速度 |
pointX : real
Attractor 項目の x 座標からの相対的な、引き付け点の x 座標。
pointY : real
Attractor 項目の y 座標からの相対的な、引き付け点の y 座標。
proportionalToDistance : enumeration
引力のstrength と粒子から引力点までの距離の関係。
| 定数 | 説明 |
|---|---|
Attractor.Constant | 定数 |
Attractor.Linear | 線形 |
Attractor.InverseLinear | 逆線形 |
Attractor.Quadratic | 二次 |
Attractor.InverseQuadratic | 逆二次 |
strength : real
1 ピクセル離れたアイテムに及ぼされる引力を 1 秒あたりの単位で表します。
強さは、proportionalToDistance プロパティの値と一緒に、離れたパーティクルに及ぼされる正確な引っ張り量を決定します。
© 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.