Gravity3D QML Type

Accelerates particles to a vector of the specified magnitude in the specified direction. 更多...

导入语句: import QtQuick3D.Particles3D
Since: Qt 6.2
继承: Affector3D

特性

详细描述

This element models the gravity of a massive object whose center of gravity is far away (and thus the gravitational pull is effectively constant across the scene). To model the gravity of an object near or inside the scene, use Attractor3D .

特性文档编制

direction : vector3d

This property defines the direction the gravity will affect toward. Values will be automatically normalized to a unit vector.

默认值为 (0.0, -1.0, 0.0) (downwards).

magnitude : real

This property defines the magnitude in position change per second. Negative magnitude accelerates the opposite way from the direction .

默认值为 100.0 .