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 が偽の場合、これはターゲット位置までの距離と乗算されます。
デフォルト値は1.0
。
magnitudeVariation : real |
このプロパティは、1 秒あたりの位置変化の大きさの変化を定義する。normalized が false のとき、この値は目標位置までの距離と乗算される。
デフォルト値は0.0
。
magnitudeも参照 。
normalized : bool |
このプロパティは、position までの距離を正規化されたものとみなすかどうかを定義する。これがfalseのとき、position への距離はパーティクルの速度の大きさに影響します。trueに設定すると、距離は正規化され、速度の大きさはmagnitude とmagnitudeVariation からのみになります。
デフォルト値はfalse
です。
magnitude およびmagnitudeVariationも参照して ください。
position : vector3d |
positionVariation : vector3d |
© 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.