47 QMesh *ownerMesh=
nullptr;
49 bool isInternal=
false;
53 std::vector<QVector> accumulatedForces;
56 QParticle(
float posX,
float posY,
float radius=0.5f);
64 return globalPosition;
68 return prevGlobalPosition;
QParticle objects form the network structures of QMesh objects defined for all body object types....
Definition: qparticle.h:37
QParticle * AddGlobalPosition(QVector value)
Definition: qparticle.cpp:66
static void ApplyForceToParticleSegment(QParticle *pA, QParticle *pB, QVector force, QVector fromPosition)
Definition: qparticle.cpp:173
QVector GetForce()
Definition: qparticle.h:93
QParticle * SetForce(QVector value)
Definition: qparticle.cpp:134
QParticle * AddAccumulatedForce(QVector value)
Definition: qparticle.cpp:147
QParticle * SetOwnerMesh(QMesh *mesh)
Definition: qparticle.cpp:103
float GetMass()
Definition: qparticle.h:75
QParticle * SetMass(float value)
Definition: qparticle.cpp:98
QParticle * ApplyForce(QVector value)
Definition: qparticle.cpp:126
QVector GetGlobalPosition()
Definition: qparticle.h:63
QParticle * ApplyAccumulatedForces()
Definition: qparticle.cpp:159
QVector GetPreviousGlobalPosition()
Definition: qparticle.h:67
bool GetIsInternal()
Definition: qparticle.h:89
QVector GetPosition()
Definition: qparticle.h:71
QParticle * ClearAccumulatedForces()
Definition: qparticle.cpp:153
float GetRadius()
Definition: qparticle.h:85
QParticle * SetGlobalPosition(QVector value)
Definition: qparticle.cpp:53
QParticle * AddForce(QVector value)
Definition: qparticle.cpp:143
QParticle * SetPreviousGlobalPosition(QVector value)
Definition: qparticle.cpp:69
QParticle * SetRadius(float radius)
Definition: qparticle.cpp:108
QParticle * SetIsInternal(bool value)
Definition: qparticle.cpp:119
QParticle * AddPreviousGlobalPosition(QVector value)
Definition: qparticle.cpp:74
QParticle * AddPosition(QVector value)
Definition: qparticle.cpp:94
QMesh * GetOwnerMesh()
Definition: qparticle.h:81
Every QBody object requires meshes. In other traditional physics engines, the term 'shape' is used in...
Definition: qmesh.h:48