Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
PK::Contact Class Reference

#include <Contact.h>

Public Member Functions

 Contact ()
 
 Contact (Vector2f pos, Vector2f nor, float sep)
 
 ~Contact ()
 

Public Attributes

Vector2f Position
 
Vector2f Normal
 
float Separation
 
float RIMNormal
 
float RIMTangent
 
float PenetrationOffset
 

Constructor & Destructor Documentation

Contact::Contact ( )

Create an instance of the Contact object

Contact::Contact ( Vector2f  pos,
Vector2f  nor,
float  sep 
)

Create an instance of the Contact object

Position of the contact Normal for the contact Separation of the contact from the incident face

Contact::~Contact ( )

Destroy this instance of the Contact object

Member Data Documentation

Vector2f PK::Contact::Normal

Normal for the contact

float PK::Contact::PenetrationOffset

Additional velocity to apply to the impulse to sallow for the fact that the objects are inside each other, not like real world

Vector2f PK::Contact::Position

Position of the contact

float PK::Contact::RIMNormal

Reaction Impulse Magnitude across the Normal of the contact point

float PK::Contact::RIMTangent

Reaction Impulse Magnitude across the Tangent of the contact point

float PK::Contact::Separation

Separation of the contact from the incident face


The documentation for this class was generated from the following files: