#include "qquickparticlesystem_p.h"//for ParticlesVertices
QT_BEGIN_NAMESPACE
/*!
- \qmlclass Wander QQuickWanderAffector
+ \qmltype Wander
+ \instantiates QQuickWanderAffector
\inqmlmodule QtQuick.Particles 2
+ \ingroup qtquick-particles
\inherits Affector
\brief For applying random particle trajectory
bool QQuickWanderAffector::affectParticle(QQuickParticleData* data, qreal dt)
{
- /*TODO: Add a mode which does basically this - picking a direction, going in it (random speed) and then going back
+ /*TODO: Add a mode which does basically this - picking a direction, going in it (random velocity) and then going back
WanderData* d = getData(data->systemIndex);
if (m_xVariance != 0.) {
if ((d->x_vel > d->x_peak && d->x_var > 0.0) || (d->x_vel < -d->x_peak && d->x_var < 0.0)) {