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.