#include <DriveOperator.h>
Inheritance diagram for gator::DriveNavigationOperator:
Public Types | |
typedef boost::shared_ptr< ani::Body > | EntityTypePtr |
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 |
Definition at line 17 of file DriveOperator.h.
|
Definition at line 20 of file DriveOperator.h. Referenced by DriveNavigationOperator(). |
|
Definition at line 24 of file DriveOperator.h. References EntityTypePtr, mEnt, and ani::Operator< ani::Body >::Operator(). |
|
Definition at line 30 of file DriveOperator.h. |
|
apply an impulse force. force applied per 1 sec. Definition at line 35 of file DriveOperator.h. References mImpulseForce. |
|
apply a force. force applied is per timeStep. Definition at line 41 of file DriveOperator.h. |
|
|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(). |
|
Definition at line 56 of file DriveOperator.h. References mStopping. |
|
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(). |
|
Definition at line 101 of file DriveOperator.h. Referenced by DriveNavigationOperator(), and exec(). |
|
Definition at line 102 of file DriveOperator.h. |
|
Definition at line 103 of file DriveOperator.h. Referenced by exec(), and impulseForce(). |
|
Definition at line 104 of file DriveOperator.h. |
|
Definition at line 105 of file DriveOperator.h. |