![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Functions | |
static QT_BEGIN_NAMESPACE qreal | sign (qreal a) |
\qmltype Friction \nativetype QQuickFrictionAffector \inqmlmodule QtQuick.Particles\inherits ParticleAffector |
Variables | |
static const qreal | epsilon = 0.00001 |
|
static |
\qmltype Friction \nativetype QQuickFrictionAffector \inqmlmodule QtQuick.Particles\inherits ParticleAffector
For applying friction proportional to the particle's current velocity.
\qmlproperty real QtQuick.Particles::Friction::factor
A drag will be applied to moving objects which is this factor of their current velocity.
\qmlproperty real QtQuick.Particles::Friction::threshold
The drag will only be applied to objects with a velocity above the threshold velocity. The drag applied will bring objects down to the threshold velocity, but no further.
The default threshold is 0
Definition at line 31 of file qquickfriction.cpp.
|
static |
Definition at line 36 of file qquickfriction.cpp.