41 bool fixedRotation=
false;
43 float angularForce=0.0f;
59 return allowKinematicCollisions;
85 allowKinematicCollisions=value;
QBody objects are the base class for all types of bodies. Any class derived from QBody shares these m...
Definition: qbody.h:43
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
QRigidBody * AddAngularForce(float value)
Definition: qrigidbody.cpp:97
QVector GetForce()
Definition: qrigidbody.h:63
QRigidBody * ApplyImpulse(QVector impulse, QVector r)
Definition: qrigidbody.cpp:64
QRigidBody * SetKinematicCollisionsEnabled(bool value)
Definition: qrigidbody.h:84
QRigidBody * SetAngularForce(float value)
Definition: qrigidbody.cpp:90
QRigidBody * SetFixedRotationEnabled(bool value)
Definition: qrigidbody.h:73
virtual void Update()
Definition: qrigidbody.cpp:102
float GetAngularForce()
Definition: qrigidbody.h:67
QRigidBody * SetPositionAndCollide(QVector value, bool withPreviousPosition=true)
Definition: qrigidbody.cpp:41
QRigidBody * SetKinematicEnabled(bool value)
Definition: qrigidbody.h:78
bool GetKinematicEnabled()
Definition: qrigidbody.h:54
bool GetKinematicCollisionsEnabled()
Definition: qrigidbody.h:58
QRigidBody * ApplyForce(QVector force, QVector r, bool updateMeshTransforms=true)
Definition: qrigidbody.cpp:50
QRigidBody * SetForce(QVector value)
Definition: qrigidbody.cpp:78
bool GetFixedRotationEnabled()
Definition: qrigidbody.h:50
QRigidBody * AddForce(QVector value)
Definition: qrigidbody.cpp:85
virtual void PostUpdate()
Definition: qrigidbody.cpp:166