IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Gravity QML Type

For applying acceleration in an angle.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Gravity QML Type

  • Import Statement: import QtQuick.Particles

  • Inherits:: Affector

  • Group: Gravity is part of qtquick-particles

Detailed Description

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.

Property Documentation

 

angle : real

Angle of acceleration.

magnitude : real

Pixels per second that objects will be accelerated by.

Obsolete Members for Gravity

The following members of QML type Gravity are deprecated. We strongly advise against using them in new code.

Obsolete Property Documentation

 
acceleration : real

This property is deprecated. We strongly advise against using it in new code.

The name for this property has changed to magnitude, use it instead.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+