Quark Physics  1.0
2D Rigid and Soft Body Physics Engine
QBody::CollisionInfo Struct Reference

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>

Collaboration diagram for QBody::CollisionInfo:

Public Member Functions

 CollisionInfo (QVector position, QBody *body, QVector normal, float penetration)
 

Public Attributes

QVector position
 
QBodybody
 
QVector normal
 
float penetration
 

Detailed Description

CollisionInfo structure contains collision information of a body object. This information is sent to the relevant event listeners during a collision event.

Member Data Documentation

◆ body

QBody* QBody::CollisionInfo::body

The collided body.

◆ normal

QVector QBody::CollisionInfo::normal

The collision normal.

◆ penetration

float QBody::CollisionInfo::penetration

The collision penetration.

◆ position

QVector QBody::CollisionInfo::position

The contact position of the collision.


The documentation for this struct was generated from the following file: