irr::newton::MaterialPairAndContact Class Reference

material pair and contact. Using Multiple inheritance. More...

#include <material_pair_and_contact.hpp>

Inheritance diagram for irr::newton::MaterialPairAndContact:

irr::newton::MaterialPair irr::newton::MaterialContact List of all members.

Public Member Functions

irr::f32 getContactNormalSpeed ()
irr::f32 getContactTangentSpeed (bool index)
 MaterialPairAndContact (NewtonMaterial *material_to_set, NewtonContact *contact_to_set)
 MaterialPairAndContact ()

Detailed Description

material pair and contact. Using Multiple inheritance.


Constructor & Destructor Documentation

irr::newton::MaterialPairAndContact::MaterialPairAndContact (  )  [inline]

constructor. don't call this directly

irr::newton::MaterialPairAndContact::MaterialPairAndContact ( NewtonMaterial *  material_to_set,
NewtonContact *  contact_to_set 
) [inline]

constructor. don't call this directly


Member Function Documentation

irr::f32 irr::newton::MaterialPairAndContact::getContactNormalSpeed (  ) 

Calculate the speed of this contact along the normal vector of the contact

Returns:
Contact speed. A positive value means the contact is repulsive

irr::f32 irr::newton::MaterialPairAndContact::getContactTangentSpeed ( bool  index  ) 

Calculate the speed of this contact along the tangent vector of the contact

Parameters:
index to the tangent vector. This value can be 0 for primary tangent direction or 1 for the secondary tangent direction.
Returns:
Contact tangent speed


The documentation for this class was generated from the following file:
Generated on Fri Dec 15 16:58:33 2006 for IrrNewt by  doxygen 1.5.1-p1