VectorDirection3D QML Type
ターゲット方向への向きを指定するためのものです。詳細...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.2 |
| Inherits: |
プロパティ
- direction : vector3d
- directionVariation : vector3d
- normalized : bool
詳細な説明
この要素は、ターゲットの方向ベクトルに向けた粒子の速度を設定します。方向ベクトルの長さが速度の大きさとして使用されます。
たとえば、x: 50..150、y: -20..20、z: 0の範囲内のランダムな方向に向かってパーティクルを放出するには、次のように指定します:
ParticleEmitter3D {
...
velocity: VectorDirection3D {
direction: Qt.vector3d(100, 0, 0)
directionVariation: Qt.vector3d(50, 20, 0)
}
}プロパティのドキュメント
direction : vector3d
このプロパティは、パーティクルのターゲットとなる方向を定義します。
デフォルト値は(0, 100, 0) (y軸方向の上方)です。
「directionVariation」も参照してください 。
directionVariation : vector3d
このプロパティは、パーティクルのターゲットに対する方向の変動を定義します。
デフォルト値は(0, 0, 0) (変動なし)です。
「direction」も参照してください 。
normalized : bool
このプロパティは、バリエーションを適用した後に方向を正規化するかどうかを定義します。この値が false の場合、バリエーションはパーティクルの速度の大きさに影響します。true に設定すると、バリエーションは方向に影響しますが、大きさは元の方向の長さによって決定されます。
デフォルト値はfalse です。
© 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.