30 #include "qrigidbody.h"
49 bool collisionsEnabled=
false;
59 bool grooveEnabled=
false;
101 return anchorGlobalA;
105 return anchorGlobalB;
109 return collisionsEnabled;
125 return grooveEnabled;
158 this->anchorA=worldPosition;
170 this->anchorB=worldPosition;
float GetRotation()
Definition: qbody.h:201
QVector GetPosition()
Definition: qbody.h:193
QJoint objects serves to apply various distance constraints between rigid bodies. Additionally,...
Definition: qjoint.h:37
float GetRigidity()
Definition: qjoint.h:112
QJoint * SetBalance(float value)
Definition: qjoint.h:195
QRigidBody * GetBodyB()
Definition: qjoint.h:88
QJoint * SetAnchorAPosition(QVector worldPosition)
Definition: qjoint.h:154
QVector GetAnchorBGlobalPosition()
Definition: qjoint.h:104
QJoint * SetGrooveEnabled(bool value)
Definition: qjoint.h:204
QJoint * SetBodyA(QRigidBody *body)
Definition: qjoint.h:138
float GetBalance()
Definition: qjoint.h:120
QJoint * SetEnabled(bool value)
Definition: qjoint.h:220
bool GetEnabled()
Definition: qjoint.h:129
QJoint * SetAnchorBPosition(QVector worldPosition)
Definition: qjoint.h:166
QVector GetAnchorBPosition()
Definition: qjoint.h:96
QJoint * SetCollisionEnabled(bool value)
Definition: qjoint.cpp:72
QJoint * SetBodyB(QRigidBody *body)
Definition: qjoint.h:146
bool GetGrooveEnabled()
Definition: qjoint.h:124
bool GetCollisionEnabled()
Definition: qjoint.h:108
QVector GetAnchorAGlobalPosition()
Definition: qjoint.h:100
QJoint(QRigidBody *bodyA, QVector anchorWorldPositionA, QVector anchorWorldPositionB, QRigidBody *bodyB=nullptr)
Definition: qjoint.cpp:32
QRigidBody * GetBodyA()
Definition: qjoint.h:84
QJoint * SetRigidity(float value)
Definition: qjoint.h:179
QJoint * SetLength(float value)
Definition: qjoint.h:187
QJoint(QRigidBody *bodyA, QVector commonAnchorWorldPosition, QRigidBody *bodyB=nullptr)
Definition: qjoint.h:79
virtual void Update()
Definition: qjoint.cpp:84
QVector GetAnchorAPosition()
Definition: qjoint.h:92
float GetLength()
Definition: qjoint.h:116
QRigidBody is a type of body that is simulated with the dynamics of Rigid body. A rigid body is a typ...
Definition: qrigidbody.h:40
A QWorld object is required to create a physics simulation. The QWorld class manages the entire physi...
Definition: qworld.h:51