SO3Engine
|
OgreNewt_ContactJoint.cpp
Go to the documentation of this file.
34 return (MaterialPair*)NewtonMaterialGetUserData(world->getNewtonWorld(), body0->getMaterialGroupID()->getID(), body1->getMaterialGroupID()->getID());
56 Contact contact(NewtonContactJointGetNextContact(m_parent->_getNewtonContactJoint(), m_contact), m_parent);
OgreNewt::World *const getWorld() const
get a pointer to the OgreNewt::World this body belongs to.
Definition OgreNewt_Body.h:136
const OgreNewt::MaterialID * getMaterialGroupID() const
get a pointer to the Material assigned to this body.
Definition OgreNewt_Body.cpp:399
with the methods from this class you can set the behavior of each contac-point
Definition OgreNewt_ContactJoint.h:78
void remove()
removes the contact from the parent contact-joint, this means newton doesn't process this contact
Definition OgreNewt_ContactJoint.cpp:67
Contact getNext() const
get the next contact from the parent contact-joint
Definition OgreNewt_ContactJoint.cpp:54
with this class you can iterate through all contacts
Definition OgreNewt_ContactJoint.h:33
MaterialPair * getMaterialPair()
get the MaterialPair with the basis material of this contact-joint
Definition OgreNewt_ContactJoint.cpp:28
const NewtonJoint * _getNewtonContactJoint()
get the newton ContactJoint
Definition OgreNewt_ContactJoint.h:55
const NewtonJoint * m_contactjoint
Definition OgreNewt_ContactJoint.h:64
NewtonWorld * getNewtonWorld() const
retrieves a pointer to the NewtonWorld
Definition OgreNewt_World.h:284
Generated by 1.9.8