ParticleMotionGravity Element Reference

The ParticleMotionGravity object moves particles towards a point.

This element was introduced in Qt 4.7.

Detailed Description

The ParticleMotionGravity object moves particles towards a point.

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.

Properties

Property Documentation

  • acceleration : real

This property holds the acceleration to apply to the particles.

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

Notes provided by the Qt Community

No notes