41 void UpdateContacts();
43 int collidableLayersBit=1;
77 static vector<QRaycast::Contact>
RaycastTo(
QWorld *world,
QVector rayPosition,
QVector rayVector,
int collidableLayers=1,
bool enableContainingBodies=
false );
124 QVector position=QVector::Zero();
127 QVector rayOriginal=QVector::Zero();
129 bool enabledContainingBodies=
false;
131 vector<QRaycast::Contact> contacts;
137 static vector<QBody*> GetPotentialBodies(
QWorld *whichWorld,
QVector rayPosition,
QVector rayVector,
int collidableLayers);
138 static void RaycastToParticles(
QBody *body,
QMesh *mesh,
QVector rayPosition,
QVector rayVector,
QVector rayUnit,
QVector rayNormal,
bool enableContainingBodies,vector<QRaycast::Contact> *contacts);
139 static void RaycastToPolygon(
QBody *body,
QMesh *mesh,
QVector rayPosition,
QVector rayVector,
QVector rayUnit,
QVector rayNormal,
bool enableContainingBodies,vector<QRaycast::Contact> *contacts);
QBody objects are the base class for all types of bodies. Any class derived from QBody shares these m...
Definition: qbody.h:43
QRaycast objects send a ray into the world and return collision results with body objects....
Definition: qraycast.h:38
QRaycast * SetRayVector(QVector value)
Definition: qraycast.cpp:162
QRaycast * SetRotation(float value)
Definition: qraycast.cpp:155
vector< QRaycast::Contact > * GetContacts()
Definition: qraycast.cpp:118
QVector GetPosition()
Definition: qraycast.cpp:123
QRaycast * SetEnabledContainingBodies(bool value)
Definition: qraycast.cpp:169
bool GetEnabledContainingBodies()
Definition: qraycast.cpp:133
int GetCollidableLayersBit()
Definition: qraycast.cpp:138
float GetRotation()
Definition: qraycast.cpp:144
QRaycast * SetCollidableLayersBit(int value)
Definition: qraycast.cpp:175
QRaycast(QVector position, QVector rayVector, bool enableContainingBodies=false)
Definition: qraycast.cpp:33
static vector< QRaycast::Contact > RaycastTo(QWorld *world, QVector rayPosition, QVector rayVector, int collidableLayers=1, bool enableContainingBodies=false)
Definition: qraycast.cpp:94
QRaycast * SetPosition(QVector value)
Definition: qraycast.cpp:149
QVector GetRayVector()
Definition: qraycast.cpp:128
A QWorld object is required to create a physics simulation. The QWorld class manages the entire physi...
Definition: qworld.h:51
Every QBody object requires meshes. In other traditional physics engines, the term 'shape' is used in...
Definition: qmesh.h:48