|
Coefficients of friction |
where v is velocity, a is acceleration, y is impulse, and f is force at the contact point. - Note:
- :
(*)_n and (*)_t indicate the normal and tangential components of (*) respectively.
|
virtual void | setCOF_grip (deFloat c) |
| cofg : coefficient of grip friction when v != 0 and y != 0 : f_g = - sign(v_t) * cofg * y_n
|
virtual void | setCOF_viscous (deFloat c) |
| cofv : coefficient of viscous friction when v != 0 : f_v = - v_t * cofv
|
virtual void | setCOF_static (deFloat c) |
| cofs : coefficient of static friction when v == 0 and a != 0 : f_s = - sign(a_t) * cofs * f_n
|
virtual void | setCOF_dynamic (deFloat c) |
| cofd : coefficient of dynamic friction when v != 0 : f_d = - sign(v_t) * cofd * f_n
|
virtual deFloat | effectiveMass (const deVector3 *Pie, const deVector3 *Ui) |
virtual void | linearVelocity (deVector3 *Vie, const deVector3 *Pie) |
virtual void | linearAcceleration (deVector3 *Aie, const deVector3 *Pie) |
virtual void | impulse (const deVector3 *Pie, const deVector3 *Yie) |
| computes new velocity given impulse
|
virtual void | impulseDist (const deVector3 *Pie, const deVector3 *Yie) |
| computes new position given pseudo impulse
|
virtual void | force (const deVector3 *Pie, const deVector3 *Fie) |
| computes new force given force
|
virtual deInt | impact1 (const deVector3 *Pie, const deVector3 *Ui, const deFloat cor2, const deFloat cofg2) |
| computes new velocity and force given pos, vel, acc
|
virtual deInt | impact2 (taoCNode *ni, const deVector3 *Pie, const deVector3 *Ui, taoCNode *nj, const deVector3 *Pje, const deVector3 *Uj) |
| This method computes impulse/force and changes velocity/friction between two colliding nodes, ni and nj.
|
virtual deInt | penetration1 (const deVector3 *Pie, const deVector3 *Ui, const deVector3 *pdist, const deFloat dt) |
| This method computes impulse and changes position/orientation using impulseDist() .
|
Public Member Functions |
| taoCNode () |
virtual | ~taoCNode () |
virtual deFrame * | frameGlobal ()=0 |
| global frame for the dynamics computation
|
virtual void | getFrameGraphics (deFrame *Fg)=0 |
| global frame for graphics display
|
virtual void | setID (const deInt id) |
virtual deInt | getID () |
virtual void | setIsFixed (const deInt f) |
virtual deInt | getIsFixed () |
virtual deFloat | getCOR () |
virtual deFloat | getCOF_grip () |
virtual deFloat | getCOF_viscous () |
virtual deFloat | getCOF_static () |
virtual deFloat | getCOF_dynamic () |
virtual void | setCOR (deFloat c) |
| coefficient of restitution
|
This provides a base node class for other node involving collision.