このページでは

TargetDirection3D QML Type

目標位置に向かう方向を指定する。もっと詳しく...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2
Inherits:

Direction3D

プロパティ

詳細説明

この要素は、ターゲット位置に向かって放出されるパーティクルの速度を設定します。

例えば、位置(100, 0, 0)に向かって、10~20の間でランダムな大きさでパーティクルを放出します:

ParticleEmitter3D {
    ...
    velocity: TargetDirection3D {
        position: Qt.vector3d(100, 0, 0)
        normalized: true
        magnitude: 15.0
        magnitudeVariation: 5.0
    }
}

プロパティの説明

magnitude : real

このプロパティは、1 秒あたりの位置変化の大きさを定義する。負の大きさは、position と反対の方向に加速する。normalized が偽の場合、これはターゲット位置までの距離と乗算される。

デフォルト値は1.0

magnitudeVariationも参照してください

magnitudeVariation : real

このプロパティは、1 秒あたりの位置変化の大きさを定義する。normalized が false の場合、ターゲット位置までの距離が乗算される。

デフォルト値は0.0

magnitudeも参照

normalized : bool

このプロパティはposition までの距離を正規化されたものとみなすかどうかを定義する。これがfalseのとき、position への距離はパーティクルの速度の大きさに影響する。trueに設定すると、距離は正規化され、速度の大きさはmagnitudemagnitudeVariation からのみになります。

デフォルト値はfalse です。

magnitude およびmagnitudeVariationも参照してください

position : vector3d

このプロパティは、パーティクル・ターゲットの位置を定義します。

デフォルト値は(0, 0, 0) (エミッタの中心)です。

positionVariationも参照して ください。

positionVariation : vector3d

このプロパティは、パーティクル・ターゲットの位置変動を定義する。

デフォルト値は(0, 0, 0) (変動なし)です。

positionも参照してください

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