Panda3D
Public Member Functions | Static Public Member Functions
LinearFrictionForce Class Reference

Friction-based drag force. More...

#include "linearFrictionForce.h"

Inheritance diagram for LinearFrictionForce:
LinearForce BaseForce TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 LinearFrictionForce (PN_stdfloat coef=1.0f, PN_stdfloat a=1.0f, bool m=false)
 Constructor.
 LinearFrictionForce (const LinearFrictionForce &copy)
 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.

Detailed Description

Friction-based drag force.

Definition at line 24 of file linearFrictionForce.h.


Constructor & Destructor Documentation

LinearFrictionForce::LinearFrictionForce ( PN_stdfloat  coef = 1.0f,
PN_stdfloat  a = 1.0f,
bool  m = false 
)

Constructor.

Definition at line 26 of file linearFrictionForce.cxx.

copy constructor

Definition at line 37 of file linearFrictionForce.cxx.

destructor

Definition at line 48 of file linearFrictionForce.cxx.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations