Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickfriction.cpp File Reference
#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 \instantiates QQuickFrictionAffector \inqmlmodule QtQuick.Particles\inherits Affector
 

Variables

static const qreal epsilon = 0.00001
 

Function Documentation

◆ sign()

static QT_BEGIN_NAMESPACE qreal sign ( qreal  a)
static

\qmltype Friction \instantiates QQuickFrictionAffector \inqmlmodule QtQuick.Particles\inherits Affector

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