51 qreal newVX = curVX + (curVX * m_factor * -1 * dt);
52 qreal newVY = curVY + (curVY * m_factor * -1 * dt);
60 qreal curMag =
qSqrt(curVX*curVX + curVY*curVY);
61 if (curMag <= m_threshold +
epsilon)
63 qreal newMag =
qSqrt(newVX*newVX + newVY*newVY);
64 if (newMag <= m_threshold +
epsilon ||
68 newVX = m_threshold *
qCos(theta);
69 newVY = m_threshold *
qSin(theta);
QQuickParticleSystem * m_system