Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gator::DriveNavigationOperator Class Reference

Features of this operator: apply local force this pushes the body "forward" in its local coordinate frame. More...

#include <DriveOperator.h>

Inheritance diagram for gator::DriveNavigationOperator:

ani::Operator< ani::Body > ani::Memory List of all members.

Public Types

typedef boost::shared_ptr<

Public Methods

 DriveNavigationOperator (EntityTypePtr &e)
virtual ~DriveNavigationOperator ()
void impulseForce (const gmtl::Vec3f &acc)
 apply an impulse force. More...

void force (const gmtl::Vec3f &force)
 apply a force. More...

void torque (const gmtl::Vec3f &torque)
 |torque| is the amount of torque. More...

void stop ()
virtual void exec (ani::DynamicSystem< ani::Body > &ps, float timeDelta)

Public Attributes

EntityTypePtr mEnt
gmtl::Vec3f mForce
gmtl::Vec3f mImpulseForce
gmtl::Vec3f mTorque
bool mStopping

Detailed Description

Features of this operator: apply local force this pushes the body "forward" in its local coordinate frame.

Definition at line 17 of file DriveOperator.h.

Member Typedef Documentation

typedef boost::shared_ptr<ani::Body> gator::DriveNavigationOperator::EntityTypePtr

Definition at line 20 of file DriveOperator.h.

Referenced by DriveNavigationOperator().

Constructor & Destructor Documentation

gator::DriveNavigationOperator::DriveNavigationOperator EntityTypePtr   e [inline]

Definition at line 24 of file DriveOperator.h.

References EntityTypePtr, mEnt, and ani::Operator< ani::Body >::Operator().

virtual gator::DriveNavigationOperator::~DriveNavigationOperator   [inline, virtual]

Definition at line 30 of file DriveOperator.h.

Member Function Documentation

void gator::DriveNavigationOperator::impulseForce const gmtl::Vec3f &    acc [inline]

apply an impulse force.

force applied per 1 sec.

Definition at line 35 of file DriveOperator.h.

References mImpulseForce.

void gator::DriveNavigationOperator::force const gmtl::Vec3f &    force [inline]

apply a force.

force applied is per timeStep.

Definition at line 41 of file DriveOperator.h.

References force(), and mForce.

Referenced by exec(), and force().

void gator::DriveNavigationOperator::torque const gmtl::Vec3f &    torque [inline]

|torque| is the amount of torque.

torque vector is the axis of rotation (use right hand rule for direction of twist). magnitude of this vecotr is amount of torque.

Definition at line 51 of file DriveOperator.h.

References mTorque, and torque().

Referenced by torque().

void gator::DriveNavigationOperator::stop   [inline]

Definition at line 56 of file DriveOperator.h.

References mStopping.

virtual void gator::DriveNavigationOperator::exec ani::DynamicSystem< ani::Body > &    ps,
float    timeDelta
[inline, virtual]

Implements ani::Operator< ani::Body >.

Definition at line 61 of file DriveOperator.h.

References ani::Body::applyForce(), force(), ani::Body::linearVelocity(), ani::Body::mass(), mEnt, mForce, mImpulseForce, mStopping, mTorque, ani::Body::rotation(), and ani::Body::setAngularVelocity().

Member Data Documentation

EntityTypePtr gator::DriveNavigationOperator::mEnt

Definition at line 101 of file DriveOperator.h.

Referenced by DriveNavigationOperator(), and exec().

gmtl::Vec3f gator::DriveNavigationOperator::mForce

Definition at line 102 of file DriveOperator.h.

Referenced by exec(), and force().

gmtl::Vec3f gator::DriveNavigationOperator::mImpulseForce

Definition at line 103 of file DriveOperator.h.

Referenced by exec(), and impulseForce().

gmtl::Vec3f gator::DriveNavigationOperator::mTorque

Definition at line 104 of file DriveOperator.h.

Referenced by exec(), and torque().

bool gator::DriveNavigationOperator::mStopping

Definition at line 105 of file DriveOperator.h.

Referenced by exec(), and stop().

The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:09 2002 for Animaniac by doxygen1.2.15