49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
#ifndef ODEBALLJOINT_H
|
|
#define ODEBALLJOINT_H
|
|
|
|
#include "pandabase.h"
|
|
#include "typedObject.h"
|
|
#include "luse.h"
|
|
|
|
#include "ode/ode.h"
|
|
|
|
#include "odeJoint.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : OdeBallJoint
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDAODE OdeBallJoint : public OdeJoint {
|
|
PUBLISHED:
|
|
OdeBallJoint(OdeWorld &world);
|
|
OdeBallJoint(OdeWorld &world, OdeJointGroup &joint_group);
|
|
virtual ~OdeBallJoint();
|
|
|
|
INLINE void set_ball_anchor(dReal x, dReal y, dReal z);
|
|
INLINE void set_ball_anchor2(dReal x, dReal y, dReal z);
|
|
|
|
INLINE void get_ball_anchor(dVector3 result) const;
|
|
INLINE void get_ball_anchor2(dVector3 result) const;
|
|
|
|
public:
|
|
static TypeHandle get_class_type() {
|
|
return _type_handle;
|
|
}
|
|
static void init_type() {
|
|
OdeJoint::init_type();
|
|
register_type(_type_handle, "OdeBallJoint",
|
|
OdeJoint::get_class_type());
|
|
}
|
|
virtual TypeHandle get_type() const {
|
|
return get_class_type();
|
|
}
|
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
};
|
|
|
|
#include "odeBallJoint.I"
|
|
|
|
#endif
|