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

gator::Car4WheelsMethod Class Reference

a travel method that implements the common "drive" metaphor fround in many VR systems. More...

#include <Car4WheelsMethod.h>

Inheritance diagram for gator::Car4WheelsMethod:

gator::TravelMethod ani::DynamicSystem< ani::Body > ani::Body ani::Memory List of all members.

Public Methods

 Car4WheelsMethod ()
virtual void digitalInput (unsigned int id, EdgeState value)
 call this with the id that you want to trigger. More...

virtual void analogInput (unsigned int id, float value)
 call this with the id that you want to trigger. More...

virtual void xformInput (unsigned int id, const gmtl::Matrix44f &value)
 call this with the id that you want to trigger. More...

virtual void setCollisionDetector (CollisionDetectorPtr &detect)
 tell the travel method how to collide with your scene. More...


Protected Attributes

boost::shared_ptr< TireForceOperatormTireForce
boost::shared_ptr< DriveNavigationOperatormNavigator
boost::shared_ptr< CollisionResponseOperatormCollider

Detailed Description

a travel method that implements the common "drive" metaphor fround in many VR systems.

Definition at line 24 of file Car4WheelsMethod.h.


Constructor & Destructor Documentation

gator::Car4WheelsMethod::Car4WheelsMethod   [inline]
 

Definition at line 27 of file Car4WheelsMethod.h.

References gator::TravelMethod::mAvatar, gator::TravelMethod::mCamera, mCollider, gator::TravelMethod::mCollisionDetector, mNavigator, mTireForce, and ani::DynamicSystem< ani::Body >::push_back().


Member Function Documentation

virtual void gator::Car4WheelsMethod::digitalInput unsigned int    id,
EdgeState    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 70 of file Car4WheelsMethod.h.

References gator::DOWN, gator::EDGE_DOWN, gator::EdgeState, gator::TravelMethod::mAvatar, and mNavigator.

virtual void gator::Car4WheelsMethod::analogInput unsigned int    id,
float    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 126 of file Car4WheelsMethod.h.

References mNavigator.

virtual void gator::Car4WheelsMethod::xformInput unsigned int    id,
const gmtl::Matrix44f &    value
[inline, virtual]
 

call this with the id that you want to trigger.

Implements gator::TravelMethod.

Definition at line 139 of file Car4WheelsMethod.h.

virtual void gator::Car4WheelsMethod::setCollisionDetector CollisionDetectorPtr   detect [inline, virtual]
 

tell the travel method how to collide with your scene.

define your own collision detector, or use one predefined from gator.

Reimplemented from gator::TravelMethod.

Definition at line 145 of file Car4WheelsMethod.h.

References gator::CollisionDetectorPtr, mCollider, and mTireForce.


Member Data Documentation

boost::shared_ptr< TireForceOperator > gator::Car4WheelsMethod::mTireForce [protected]
 

Definition at line 154 of file Car4WheelsMethod.h.

Referenced by Car4WheelsMethod(), and setCollisionDetector().

boost::shared_ptr< DriveNavigationOperator > gator::Car4WheelsMethod::mNavigator [protected]
 

Definition at line 155 of file Car4WheelsMethod.h.

Referenced by analogInput(), Car4WheelsMethod(), and digitalInput().

boost::shared_ptr< CollisionResponseOperator > gator::Car4WheelsMethod::mCollider [protected]
 

Definition at line 156 of file Car4WheelsMethod.h.

Referenced by Car4WheelsMethod(), and setCollisionDetector().


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