SO3Engine
|
define interaction between materials More...
#include <OgreNewt_MaterialPair.h>
Public Member Functions | |
MaterialPair (const World *world, const MaterialID *mat1, const MaterialID *mat2) | |
constructor | |
~MaterialPair () | |
destructor | |
void | setDefaultSoftness (Ogre::Real softness) const |
set default softness for the material pair. | |
void | setDefaultElasticity (Ogre::Real elasticity) const |
set default elasticity for the material pair. | |
void | setDefaultCollidable (int state) const |
set default collision for the material pair. | |
void | setDefaultSurfaceThickness (float thickness) const |
set the default thickness for this material pair | |
void | setDefaultFriction (Ogre::Real stat, Ogre::Real kinetic) const |
set default friction for the material pair. | |
void | setContactCallback (OgreNewt::ContactCallback *callback) |
assign a custom collision callback. | |
Protected Attributes | |
const MaterialID * | id0 |
const MaterialID * | id1 |
const World * | m_world |
OgreNewt::ContactCallback * | m_contactcallback |
define interaction between materials
this class represents a pair of Newton MaterialGroupIDs, which is used to define interaction bewteen materials.
Definition at line 31 of file OgreNewt_MaterialPair.h.
OgreNewt::MaterialPair::MaterialPair | ( | const World * | world, |
const MaterialID * | mat1, | ||
const MaterialID * | mat2 | ||
) |
constructor
creates an object representing a pair of materials, and defining how they will interact.
world | pointer to the OgreNewt::World |
mat1 | pointer to first materialID |
mat2 | pointer to second materialID |
Definition at line 9 of file OgreNewt_MaterialPair.cpp.
OgreNewt::MaterialPair::~MaterialPair | ( | ) |
destructor
Definition at line 17 of file OgreNewt_MaterialPair.cpp.
void OgreNewt::MaterialPair::setContactCallback | ( | OgreNewt::ContactCallback * | callback | ) |
assign a custom collision callback.
ContactCallbacks allow for custom interaction between bodies of specific materials.
callback | pointer to a user-created ContactCallback object |
Definition at line 22 of file OgreNewt_MaterialPair.cpp.
|
inline |
set default collision for the material pair.
Definition at line 57 of file OgreNewt_MaterialPair.h.
|
inline |
set default elasticity for the material pair.
Definition at line 54 of file OgreNewt_MaterialPair.h.
|
inline |
set default friction for the material pair.
Definition at line 63 of file OgreNewt_MaterialPair.h.
|
inline |
set default softness for the material pair.
Definition at line 51 of file OgreNewt_MaterialPair.h.
|
inline |
set the default thickness for this material pair
Definition at line 60 of file OgreNewt_MaterialPair.h.
|
protected |
Definition at line 74 of file OgreNewt_MaterialPair.h.
|
protected |
Definition at line 75 of file OgreNewt_MaterialPair.h.
|
protected |
Definition at line 77 of file OgreNewt_MaterialPair.h.
|
protected |
Definition at line 76 of file OgreNewt_MaterialPair.h.