Quark Physics
1.0
2D Rigid and Soft Body Physics Engine
|
Contains all the contact information required to resolve collisions. More...
#include <qcollision.h>
Public Member Functions | |
Contact (QParticle *particle, QVector position, QVector normal, float penetration, vector< QParticle * > referenceParticles) | |
void | Configure (QParticle *particle, QVector position, QVector normal, float penetration, vector< QParticle * > referenceParticles) |
Public Attributes | |
QVector | position |
QParticle * | particle |
QVector | normal |
float | penetration |
vector< QParticle * > | referenceParticles |
bool | solved |
Contains all the contact information required to resolve collisions.
QVector QCollision::Contact::normal |
The normal of the collision
QParticle* QCollision::Contact::particle |
The incident particle of the collision
float QCollision::Contact::penetration |
The penetration of the collision
QVector QCollision::Contact::position |
The contact position of the collision
vector<QParticle*> QCollision::Contact::referenceParticles |
The particle list of the reference face in the collision
bool QCollision::Contact::solved |
Determines whether the contact is solved.