Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickfriction.cpp File Reference

(a28b3303b241e23f5bdcbd103868ac9e25394297)

#include "qquickfriction_p.h"
#include <qmath.h>
#include "moc_qquickfriction_p.cpp"
Include dependency graph for qquickfriction.cpp:

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

Function Documentation

◆ sign()

QT_BEGIN_NAMESPACE qreal sign ( qreal a)
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.

Variable Documentation

◆ epsilon

const qreal epsilon = 0.00001
static

Definition at line 36 of file qquickfriction.cpp.