00001 #ifndef ODEPLANE2DJOINT_H
00002 #define ODEPLANE2DJOINT_H
00003
00004 #include "pandabase.h"
00005 #include "luse.h"
00006
00007 #include "ode_includes.h"
00008
00009 #include "odeJoint.h"
00010
00011
00012
00013
00014
00015 class EXPCL_PANDAODE OdePlane2dJoint : public OdeJoint {
00016 friend class OdeJoint;
00017
00018 private:
00019 OdePlane2dJoint(dJointID id);
00020
00021 PUBLISHED:
00022 OdePlane2dJoint(OdeWorld &world);
00023 OdePlane2dJoint(OdeWorld &world, OdeJointGroup &joint_group);
00024 virtual ~OdePlane2dJoint();
00025
00026 INLINE void set_x_param(int parameter, dReal value);
00027 INLINE void set_y_param(int parameter, dReal value);
00028 INLINE void set_angle_param(int parameter, dReal value);
00029
00030 public:
00031 static TypeHandle get_class_type() {
00032 return _type_handle;
00033 }
00034 static void init_type() {
00035 OdeJoint::init_type();
00036 register_type(_type_handle, "OdePlane2dJoint",
00037 OdeJoint::get_class_type());
00038 }
00039 virtual TypeHandle get_type() const {
00040 return get_class_type();
00041 }
00042 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00043
00044 private:
00045 static TypeHandle _type_handle;
00046 };
00047
00048 #include "odePlane2dJoint.I"
00049
00050 #endif