#include <contactjointhandler.h>
Inheritance diagram for oxygen::ContactJointHandler:
Public Member Functions | |
ContactJointHandler () | |
virtual | ~ContactJointHandler () |
virtual void | HandleCollision (boost::shared_ptr< Collider > collidee, dContact &contact) |
Check if the collidee also has a ContactJoint handler registered to it. | |
virtual bool | IsSymmetricHandler () |
the ContactJointHandler is not a symmetric handler. | |
void | SetSurfaceParameter (const dSurfaceParameters &surface) |
sets the surface parameters for the contact joints that the CollisionHandler creates | |
void | SetContactMode (int mode, bool set) |
sets or resets a contact mode flag in the surface parameter | |
void | SetContactBounceMode (bool set) |
sets or resets the dContactBounce mode flag | |
void | SetBounceValue (float bounce) |
sets the bounce value | |
void | SetMinBounceVel (float vel) |
sets the mininum incoming velocity necessary for bounce | |
void | SetContactSoftERPMode (bool set) |
sets or resets the error reduction parameter (ERP) mode, useful to make surfaces soft | |
void | SetContactSoftERP (float erp) |
sets the contact normal error reduction parameter (ERP) | |
void | SetContactSoftCFMMode (bool set) |
sets or resets the constraint force mixing mode (CFM), useful to make surfaces soft | |
void | SetContactSoftCFM (float cfm) |
sets the constraint force mixing parameter (CFM) | |
void | SetContactSlipMode (bool set) |
sets or resets the force dependent contact slip mode (FDS) | |
void | SetContactSlip (float slip) |
sets the force dependent slip (FDS) | |
void | SetContactMu (float mu) |
sets the Coulomb friction coefficient | |
Protected Member Functions | |
f_inline float | MixValues (const float v1, const float v2, const int n) const |
void | CalcSurfaceParam (dSurfaceParameters &surface, const dSurfaceParameters &collideeParam) |
Protected Attributes | |
dSurfaceParameters | mSurfaceParameter |
the ODE surface parameters of the created contact joint |
Definition at line 34 of file contactjointhandler.h.
|
Definition at line 32 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
Definition at line 41 of file contactjointhandler.cpp. |
|
Definition at line 70 of file contactjointhandler.cpp. References MixValues(), and mSurfaceParameter. Here is the call graph for this function: ![]() |
|
Check if the collidee also has a ContactJoint handler registered to it. If yes, create a contact joint between the bodies corresponding to our Collider and the collidee's geom using the surface parameters stored in the mSurfaceParameter member.
Implements oxygen::CollisionHandler. |
|
the ContactJointHandler is not a symmetric handler. See CollisionHandler::IsSymmetricHandler for an explanation Reimplemented from oxygen::CollisionHandler. Definition at line 58 of file contactjointhandler.h. |
|
Definition at line 46 of file contactjointhandler.cpp. Referenced by CalcSurfaceParam(). |
|
sets the bounce value
Definition at line 196 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
sets or resets the dContactBounce mode flag
Definition at line 184 of file contactjointhandler.cpp. References SetContactMode(). Here is the call graph for this function: ![]() |
|
sets or resets a contact mode flag in the surface parameter
Definition at line 172 of file contactjointhandler.cpp. References mSurfaceParameter. Referenced by SetContactBounceMode(), SetContactSlipMode(), SetContactSoftCFMMode(), and SetContactSoftERPMode(). |
|
sets the Coulomb friction coefficient
Definition at line 238 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
sets the force dependent slip (FDS)
Definition at line 232 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
sets or resets the force dependent contact slip mode (FDS)
Definition at line 226 of file contactjointhandler.cpp. References SetContactMode(). Here is the call graph for this function: ![]() |
|
sets the constraint force mixing parameter (CFM)
Definition at line 221 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
sets or resets the constraint force mixing mode (CFM), useful to make surfaces soft
Definition at line 215 of file contactjointhandler.cpp. References SetContactMode(). Here is the call graph for this function: ![]() |
|
sets the contact normal error reduction parameter (ERP)
Definition at line 208 of file contactjointhandler.cpp. References salt::gClamp(), and mSurfaceParameter. Here is the call graph for this function: ![]() |
|
sets or resets the error reduction parameter (ERP) mode, useful to make surfaces soft
Definition at line 202 of file contactjointhandler.cpp. References SetContactMode(). Here is the call graph for this function: ![]() |
|
sets the mininum incoming velocity necessary for bounce
Definition at line 190 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
sets the surface parameters for the contact joints that the CollisionHandler creates
Definition at line 166 of file contactjointhandler.cpp. References mSurfaceParameter. |
|
the ODE surface parameters of the created contact joint
Definition at line 113 of file contactjointhandler.h. Referenced by CalcSurfaceParam(), ContactJointHandler(), SetBounceValue(), SetContactMode(), SetContactMu(), SetContactSlip(), SetContactSoftCFM(), SetContactSoftERP(), SetMinBounceVel(), and SetSurfaceParameter(). |