TargetDirection3D QML Type
ターゲット位置への方向を指定するために使用します。詳細...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
プロパティ
- magnitude : real
- magnitudeVariation : real
- normalized : bool
- position : vector3d
- positionVariation : vector3d
詳細な説明
この要素は、ターゲット位置に向けたパーティクルの放出速度を設定します。
たとえば、位置 (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 がfalseの場合、この値は目標位置までの距離と乗算されます。
デフォルト値は `1.0` です。
「magnitudeVariation」も参照してください 。
magnitudeVariation : real
このプロパティは、1秒あたりの位置変化の大きさの変動を定義します。normalized がfalseの場合、この値に目標位置までの距離が乗算されます。
デフォルト値は `0.0` です。
「magnitude」も参照してください 。
normalized : bool
このプロパティは、position までの距離を正規化対象とするかどうかを定義します。この値が false の場合、position までの距離がパーティクルの速度の大きさに影響します。true に設定すると、距離は正規化され、速度の大きさはmagnitude およびmagnitudeVariation からのみ決定されます。
デフォルト値は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.