Gravity QML Type

For applying acceleration in an angle. 更多...

import 語句: import QtQuick.Particles 2.15
繼承:

Affector

特性

詳細描述

This element will accelerate all affected particles to a vector of the specified magnitude in the specified angle. If the angle and acceleration do not vary, it is more efficient to set the specified acceleration on the Emitter.

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

特性文檔編製

angle : real

Angle of acceleration.

magnitude : real

Pixels per second that objects will be accelerated by.