00001 #include "Joint.h"
00002
00003 #ifndef PIVOT_H
00004 #define PIVOT_H
00005
00009 class Pivot : public Joint {
00010 public:
00011
00013
00014
00025 Pivot(Container *_container,GD_Objet *_objet1=0,GD_Objet *_objet2=0);
00029 ~Pivot(void);
00030
00031
00033
00038
00039 void setPosition ( double* position );
00040 void getPosition ( double* position );
00041
00042 void setRotation ( double* rotation );
00043 void getRotation ( double* rotation );
00044
00045 void setEchelle(double* echelle) ;
00046 void getEchelle(double* echelle) ;
00047
00049
00050
00055
00056 private:
00061 void setAnchor ( double *position ) ;
00071 void getAnchor ( double *position , bool voisins=false);
00072
00073 public:
00082 void setAxis ( double *axis ) ;
00088 void getAxis ( double *axis ) ;
00089
00100 void setForce(double force);
00106 void setVel(double vel);
00107
00118 void getAngle(double *angle);
00124 void getAngleRate(double *rate);
00126
00127
00128 };
00129
00130 #endif