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

이 속성은 초당 위치 변화의 크기를 정의합니다. 음수 값은 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.