Quark Physics
1.0
2D Rigid and Soft Body Physics Engine
|
CollisionInfo structure contains collision information of a body object. This information is sent to the relevant event listeners during a collision event. More...
#include <qbody.h>
Public Member Functions | |
CollisionInfo (QVector position, QBody *body, QVector normal, float penetration) | |
Public Attributes | |
QVector | position |
QBody * | body |
QVector | normal |
float | penetration |
CollisionInfo structure contains collision information of a body object. This information is sent to the relevant event listeners during a collision event.
QBody* QBody::CollisionInfo::body |
The collided body.
QVector QBody::CollisionInfo::normal |
The collision normal.
float QBody::CollisionInfo::penetration |
The collision penetration.
QVector QBody::CollisionInfo::position |
The contact position of the collision.