24 contactCallbackActivated =
false;
25 overlapStartedCallbackActivated =
false;
26 overlapEndedCallbackActivated =
false;
55 return contactCallbackActivated;
60 contactCallbackActivated = state;
65 return overlapStartedCallbackActivated;
70 overlapStartedCallbackActivated = state;
75 return overlapEndedCallbackActivated;
80 overlapEndedCallbackActivated = state;
119 if((nodeScol0 != NULL) && (nodeScol1 != NULL))
171 if((nodeScol0 != NULL) && (nodeScol1 != NULL))
176 if(b0 != NULL && b1 != NULL)
214 Ogre::Vector3 normal;
222 mCollResult->
normal = normal;
223 mCollResult->
normalspeed = contact.getNormalSpeed();
224 mCollResult->
force = contact.getForce();
main class for all Rigid Bodies in the system.
const Ogre::Any & getUserData() const
retrieve pointer to previously set user data.
define interaction between materials
void setDefaultSoftness(Ogre::Real softness) const
set default softness for the material pair.
void setDefaultCollidable(int state) const
set default collision for the material pair.
void setDefaultElasticity(Ogre::Real elasticity) const
set default elasticity for the material pair.
void setContactCallback(OgreNewt::ContactCallback *callback)
assign a custom collision callback.
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.
OgreNewt::Body * getOgreNewtBodyPointer()
bool GetIgnoreCollision()
std::string GetName() const
OgreNewt::MaterialID * getOgreNewtMaterialID()
SMaterialPair(SScene *scene, SMaterialID *mat1, SMaterialID *mat2)
void SetContactCallbackActivated(const bool &state)
virtual int onAABBOverlap(OgreNewt::Body *body0, OgreNewt::Body *body1, int threadIndex)
user-defined AABB-overlap function
bool GetOverlapStartedCallbackActivated()
void SetOverlapStartedCallbackActivated(const bool &state)
void SetDefaultSoftness(const Ogre::Real &value)
virtual void contactsProcess(OgreNewt::ContactJoint &contactJoint, Ogre::Real timeStep, int threadIndex)
user-defined Process function
OgreNewt::MaterialPair * O3MaterialPair
void SetDefaultElasticity(const Ogre::Real &value)
void SetOverlapEndedCallbackActivated(const bool &state)
bool GetOverlapEndedCallbackActivated()
void SetDefaultFriction(const Ogre::Real &stat, const Ogre::Real &kin)
bool GetContactCallbackActivated()
void SetDefaultSurfaceThickness(const Ogre::Real &value)
SScene * GetParentScene()
void SetDefaultCollidable(const bool &enable)
SScene * GetParentScene()
SBody * GetSceneNodeBody()
void AddBodyPair(std::string name, SBody **pair)
void SetContactActivated(SBody *b0, SBody *b1, MCOLL *coll)
unsigned int GetBodyPairSize()
bool GetBodyPairExist(SBody *b0, SBody *b1)
OgreNewt::World * GetPhysicWorld()
void AddContactOverlapStart(std::string name, MCOLL *coll)
unsigned int GetMaxBodyPair()
SPhysicWorld * GetPhysicsWorld()