Gravity3D QML Type

パーティクルを指定された方向に指定された大きさのベクトルに加速する。詳細...

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

Affector3D

プロパティ

詳細説明

この要素は、重心が遠くにある巨大なオブジェクトの重力をモデル化します(したがって、重力はシーン全体で実質的に一定です)。シーンの近くや内部にある物体の重力をモデル化するには、Attractor3D を使用してください。

プロパティ ドキュメント

direction : vector3d

このプロパティは、重力が向かう方向を定義します。値は自動的に単位ベクトルに正規化されます。

デフォルト値は(0.0, -1.0, 0.0) (下向き)です。


magnitude : real

このプロパティは1秒あたりの位置変化の大きさを定義します。負の大きさは、direction と反対の方向に加速します。

デフォルト値は100.0


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