ParticleMotionGravity QML Element

The ParticleMotionGravity object moves particles towards a point. More...

Since: Qt 4.7

Properties

Detailed Description

This motion attracts the particles to the specified point with the specified acceleration. To mimic earth gravity, set yattractor to -6360000 and acceleration to 9.8.

The defaults are all 0, not earth gravity, and so no motion will occur without setting at least the acceleration property.

See also Particles.

Property Documentation

acceleration : real

This property holds the acceleration to apply to the particles.


xattractor : real

These properties hold the x and y coordinates of the point attracting the particles.


yattractor : real

These properties hold the x and y coordinates of the point attracting the particles.


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