Project

General

Profile

SO3Engine
OgreNewt::ContactJoint Class Reference

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::BodygetBody0 ()
 get the first body
 
OgreNewt::BodygetBody1 ()
 get the second body
 
const NewtonJoint * _getNewtonContactJoint ()
 get the newton ContactJoint
 
MaterialPairgetMaterialPair ()
 get the MaterialPair with the basis material of this contact-joint
 

Protected Attributes

const NewtonJoint * m_contactjoint
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ContactJoint()

OgreNewt::ContactJoint::ContactJoint ( const NewtonJoint *  contactJoint)

constructor

Definition at line 10 of file OgreNewt_ContactJoint.cpp.

◆ ~ContactJoint()

OgreNewt::ContactJoint::~ContactJoint ( )

destructor

Definition at line 16 of file OgreNewt_ContactJoint.cpp.

Member Function Documentation

◆ _getNewtonContactJoint()

const NewtonJoint * OgreNewt::ContactJoint::_getNewtonContactJoint ( )
inline

get the newton ContactJoint

Definition at line 55 of file OgreNewt_ContactJoint.h.

◆ getBody0()

OgreNewt::Body * OgreNewt::ContactJoint::getBody0 ( )
inline

get the first body

Definition at line 49 of file OgreNewt_ContactJoint.h.

◆ getBody1()

OgreNewt::Body * OgreNewt::ContactJoint::getBody1 ( )
inline

get the second body

Definition at line 52 of file OgreNewt_ContactJoint.h.

◆ getContactCount()

int OgreNewt::ContactJoint::getContactCount ( ) const
inline

return the number of contacts

Definition at line 43 of file OgreNewt_ContactJoint.h.

◆ getFirstContact()

Contact OgreNewt::ContactJoint::getFirstContact ( )

get the first contact

Definition at line 21 of file OgreNewt_ContactJoint.cpp.

◆ getMaterialPair()

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.

Member Data Documentation

◆ m_contactjoint

const NewtonJoint* OgreNewt::ContactJoint::m_contactjoint
protected

Definition at line 64 of file OgreNewt_ContactJoint.h.


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