Quark Physics  1.0
2D Rigid and Soft Body Physics Engine
QCollision::Contact Struct Reference

Contains all the contact information required to resolve collisions. More...

#include <qcollision.h>

Collaboration diagram for QCollision::Contact:

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
 
QParticleparticle
 
QVector normal
 
float penetration
 
vector< QParticle * > referenceParticles
 
bool solved
 

Detailed Description

Contains all the contact information required to resolve collisions.

Member Data Documentation

◆ normal

QVector QCollision::Contact::normal

The normal of the collision

◆ particle

QParticle* QCollision::Contact::particle

The incident particle of the collision

◆ penetration

float QCollision::Contact::penetration

The penetration of the collision

◆ position

QVector QCollision::Contact::position

The contact position of the collision

◆ referenceParticles

vector<QParticle*> QCollision::Contact::referenceParticles

The particle list of the reference face in the collision

◆ solved

bool QCollision::Contact::solved

Determines whether the contact is solved.


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