Attractor QML Type

粒子を特定の点に引き寄せます。もっと詳しく...

Import Statement: import QtQuick.Particles
Inherits:

Affector

プロパティ

詳細説明

他のアフェクタと同様に、Attractor は影響を受ける領域を表す標準的なプロパティ x、y、幅、高さを持ちます。Attractor アイテムのサイズと位置によって、影響を受けるパーティクルが決まります。

アトラクト ポイントのサイズは常に 0x0 で、その位置はpointXpointY プロパティで指定されます。

プロパティの説明

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逆2次

strength : real

1ピクセル離れたアイテムにかかる引力を1秒あたりの単位で表す。

強さは、proportionalToDistance プロパティの値と一緒に、離れたパーティクルに及ぼされる正確な引きの量を決定します。


© 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.