12345678910111213141516171819202122232425262728293031323334 |
- #ifndef QPARTICLE_H
- #define QPARTICLE_H
- #include <QVector2D>
- #include <QObject>
- #define KZEROVELOCITY 0.45
- class QParticle
- {
- public:
- explicit QParticle(const QVector2D & position, qreal aMass = 0.1f);
- explicit QParticle(qreal aMass = 0.1f);
- void setMass(qreal massInKg);
- float FastVelocityLength() const;
-
- signals:
-
- public slots:
- public:
- bool zeroVelocity(bool dontNull);
- public:
- qreal InvertMass;
- QVector2D Velocity;
- QVector2D Force;
- QVector2D Position;
-
- };
- #endif // QPARTICLE_H
|