Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickfriction.cpp File Reference

(0dc4fd240a2897c5c443a0ef6d84c416843e4938)

#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