|
SO3Engine
|
with this class you can iterate through all contacts More...
#include <OgreNewt_ContactJoint.h>
Public Member Functions | |
| ContactJoint (const NewtonJoint *contactJoint) | |
| constructor | |
| ~ContactJoint () | |
| destructor | |
| int | getContactCount () const |
| return the number of contacts | |
| Contact | getFirstContact () |
| get the first contact | |
| OgreNewt::Body * | getBody0 () |
| get the first body | |
| OgreNewt::Body * | getBody1 () |
| get the second body | |
| const NewtonJoint * | _getNewtonContactJoint () |
| get the newton ContactJoint | |
| MaterialPair * | getMaterialPair () |
| get the MaterialPair with the basis material of this contact-joint | |
Protected Attributes | |
| const NewtonJoint * | m_contactjoint |
with this class you can iterate through all contacts
this class must not be inherited or instantiated directly in any way, it is passed as argument in the contacsProcess-function of the ContactCallback! for iterating through all contacts you can do something like this: for(Contact contact = contactJoint.getFirstContact(); contact; contact = contact.getNext()) ...
Definition at line 32 of file OgreNewt_ContactJoint.h.
| OgreNewt::ContactJoint::ContactJoint | ( | const NewtonJoint * | contactJoint | ) |
constructor
Definition at line 10 of file OgreNewt_ContactJoint.cpp.
| OgreNewt::ContactJoint::~ContactJoint | ( | ) |
destructor
Definition at line 16 of file OgreNewt_ContactJoint.cpp.
|
inline |
get the newton ContactJoint
Definition at line 55 of file OgreNewt_ContactJoint.h.
|
inline |
get the first body
Definition at line 49 of file OgreNewt_ContactJoint.h.
|
inline |
get the second body
Definition at line 52 of file OgreNewt_ContactJoint.h.
|
inline |
return the number of contacts
Definition at line 43 of file OgreNewt_ContactJoint.h.
| Contact OgreNewt::ContactJoint::getFirstContact | ( | ) |
get the first contact
Definition at line 21 of file OgreNewt_ContactJoint.cpp.
| MaterialPair * OgreNewt::ContactJoint::getMaterialPair | ( | ) |
get the MaterialPair with the basis material of this contact-joint
you shouldn't need to call this function, it's only used internally
Definition at line 28 of file OgreNewt_ContactJoint.cpp.
|
protected |
Definition at line 64 of file OgreNewt_ContactJoint.h.