Patch for class Contact

rewb0rn

07-03-2007 19:23:55

I want to submit the following change to the contact class, which I added in order to manipulate the contact values in different classes
e.g. a soft body would do this: Contact->setBouncyness(Contact->getBouncyness() * 0.1)

add this to class Contact in OgreOdeCollision.h
inline Ogre::Real getCoulombFrictionMu (void) {return _contact->surface.mu; }
inline Ogre::Real getCoulombFrictionMu2 (void) {return _contact->surface.mu2; }
inline Ogre::Real getBouncyness (void) {return _contact->surface.bounce; }
inline Ogre::Real getBouncynessVelocity (void) {return _contact->surface.bounce_vel;}
inline Ogre::Real getSoftnessERP (void) {return _contact->surface.soft_erp; }
inline Ogre::Real getSoftnessCFM (void) {return _contact->surface.soft_cfm; }
inline Ogre::Real getIndependentMotion (void) {return _contact->surface.motion1; }
inline Ogre::Real getIndependentMotion2 (void) {return _contact->surface.motion2; }
inline Ogre::Real getForceDependentSlip (void) {return _contact->surface.slip1; }
inline Ogre::Real getForceDependentSlip2 (void) {return _contact->surface.slip2; }