00001 /*========================================================================= 00002 UberSim Source Code Release 00003 ------------------------------------------------------------------------- 00004 Copyright (C) 2002 Manuela Veloso, Brett Browning, Mike Bowling, 00005 James Bruce; {mmv, brettb, mhb, jbruce}@cs.cmu.edu 00006 Erick Tryzelaar {erickt}@andrew.cmu.edu 00007 School of Computer Science, Carnegie Mellon University 00008 ------------------------------------------------------------------------- 00009 This software is distributed under the GNU General Public License, 00010 version 2. If you do not have a copy of this licence, visit 00011 www.gnu.org, or write: Free Software Foundation, 59 Temple Place, 00012 Suite 330 Boston, MA 02111-1307 USA. This program is distributed 00013 in the hope that it will be useful, but WITHOUT ANY WARRANTY, 00014 including MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00015 -------------------------------------------------------------------------*/ 00016 00017 #ifndef __SIM_HINGE2JOINT_H__ 00018 #define __SIM_HINGE2JOINT_H__ 00019 00020 #include "Joint.h" 00021 #include "Vector3.h" 00028 class RigidBody; 00029 00030 class Hinge2Joint : public Joint 00031 { 00032 public: 00033 Hinge2Joint (RigidBody* rigidBody1, RigidBody* RigidBody2); 00034 virtual ~Hinge2Joint (); 00035 00036 public: 00037 void set (char* name, char* value); 00038 00039 void setAnchor (const Vector3& anchor); 00040 void setAxis1 (const Vector3& axis1); 00041 void setAxis2 (const Vector3& axis2); 00042 void setMaxForce1 (const Real maxForce1); 00043 void setMaxForce2 (const Real maxForce2); 00044 void setTargetVelocity (const Real velocity); 00045 00046 }; 00047 00048 #endif