Panda3D
|
Friction-based drag force. More...
#include "linearFrictionForce.h"
Public Member Functions | |
LinearFrictionForce (PN_stdfloat coef=1.0f, PN_stdfloat a=1.0f, bool m=false) | |
Constructor. | |
LinearFrictionForce (const LinearFrictionForce ©) | |
copy constructor | |
virtual | ~LinearFrictionForce () |
destructor | |
virtual TypeHandle | force_init_type () |
PN_stdfloat | get_coef () const |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_coef (PN_stdfloat coef) |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Friction-based drag force.
Definition at line 24 of file linearFrictionForce.h.
LinearFrictionForce::LinearFrictionForce | ( | PN_stdfloat | coef = 1.0f , |
PN_stdfloat | a = 1.0f , |
||
bool | m = false |
||
) |
Constructor.
Definition at line 26 of file linearFrictionForce.cxx.
LinearFrictionForce::LinearFrictionForce | ( | const LinearFrictionForce & | copy | ) |
copy constructor
Definition at line 37 of file linearFrictionForce.cxx.
LinearFrictionForce::~LinearFrictionForce | ( | ) | [virtual] |
destructor
Definition at line 48 of file linearFrictionForce.cxx.
static void LinearFrictionForce::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from LinearForce.
Definition at line 46 of file linearFrictionForce.h.
References LinearForce::init_type().
void LinearFrictionForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 91 of file linearFrictionForce.cxx.
void LinearFrictionForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 104 of file linearFrictionForce.cxx.