#include <ps_force.h>
Definition at line 496 of file ps_force.h.
Public Member Functions | |
CPSFluidFrictionFunctor () | |
float | getK (void) const |
void | operator() (const NLMISC::CVector &pos, NLMISC::CVector &speed, float invMass, TAnimationTime ellapsedTime) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
void | setK (float coeff) |
Protected Attributes | |
float | _K |
|
Definition at line 499 of file ps_force.h.
00499 : _K(1.f) 00500 { 00501 } |
|
Definition at line 518 of file ps_force.h.
00518 { return _K; } |
|
Definition at line 506 of file ps_force.h. References NL3D::TAnimationTime.
00507 { 00508 speed -= (ellapsedTime * _K * invMass * speed); 00509 } |
|
Definition at line 511 of file ps_force.h.
00512 { 00513 f.serialVersion(1); 00514 // we don't save intensity info : it is saved by the owning object (and set before each use of this functor) 00515 } |
|
Definition at line 521 of file ps_force.h. Referenced by NL3D::CPSFluidFriction::setupFunctor().
00521 { _K = coeff; } |
|
Definition at line 524 of file ps_force.h. |