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

Simple directed vector force. More...

#include "linearControlForce.h"

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

List of all members.

Public Member Functions

 LinearControlForce (const PhysicsObject *po=0, PN_stdfloat a=1.0f, bool mass=false)
 Vector Constructor.
 LinearControlForce (const LinearControlForce &copy)
 Copy Constructor.
virtual ~LinearControlForce ()
 Destructor.
void clear_physics_object ()
 encapsulating wrapper
 CPT (PhysicsObject) get_physics_object() const
virtual TypeHandle force_init_type ()
LVector3 get_local_vector () const
virtual TypeHandle get_type () const
virtual void output (ostream &out) const
 Write a string representation of this instance to <out>.
void set_physics_object (const PhysicsObject *po)
 encapsulating wrapper
void set_vector (const LVector3 &v)
 encapsulating wrapper
void set_vector (PN_stdfloat x, PN_stdfloat y, PN_stdfloat z)
 piecewise encapsulating wrapper
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

Simple directed vector force.

This force is different from the others in that it can be global and still only affect a single object. That might not make sense for a physics simulation, but it's very handy for a game. I.e. this is the force applied by user on the selected object.

Definition at line 29 of file linearControlForce.h.


Constructor & Destructor Documentation

LinearControlForce::LinearControlForce ( const PhysicsObject po = 0,
PN_stdfloat  a = 1.0f,
bool  mass = false 
)

Vector Constructor.

Definition at line 30 of file linearControlForce.cxx.

Copy Constructor.

Definition at line 42 of file linearControlForce.cxx.

Destructor.

Definition at line 54 of file linearControlForce.cxx.


Member Function Documentation

encapsulating wrapper

Definition at line 21 of file linearControlForce.I.

static void LinearControlForce::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 59 of file linearControlForce.h.

References LinearForce::init_type().

void LinearControlForce::output ( ostream &  out) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from LinearForce.

Definition at line 88 of file linearControlForce.cxx.

encapsulating wrapper

Definition at line 31 of file linearControlForce.I.

void LinearControlForce::set_vector ( const LVector3 v) [inline]

encapsulating wrapper

Definition at line 51 of file linearControlForce.I.

void LinearControlForce::set_vector ( PN_stdfloat  x,
PN_stdfloat  y,
PN_stdfloat  z 
) [inline]

piecewise encapsulating wrapper

Definition at line 61 of file linearControlForce.I.

void LinearControlForce::write ( ostream &  out,
unsigned int  indent = 0 
) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from LinearForce.

Definition at line 101 of file linearControlForce.cxx.


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