16 #ifndef ODEUNIVERSALJOINT_H 17 #define ODEUNIVERSALJOINT_H 41 INLINE
void set_anchor(dReal x, dReal y, dReal z);
42 INLINE
void set_anchor(
const LVecBase3f &anchor);
43 INLINE
void set_axis1(dReal x, dReal y, dReal z);
44 INLINE
void set_axis1(
const LVecBase3f &axis);
45 INLINE
void set_axis2(dReal x, dReal y, dReal z);
46 INLINE
void set_axis2(
const LVecBase3f &axis);
47 INLINE
void add_torques(dReal torque1, dReal torque2);
49 INLINE LVecBase3f get_anchor()
const;
50 INLINE LVecBase3f get_anchor2()
const;
51 INLINE LVecBase3f get_axis1()
const;
52 INLINE LVecBase3f get_axis2()
const;
53 INLINE dReal get_angle1()
const;
54 INLINE dReal get_angle2()
const;
55 INLINE dReal get_angle1_rate()
const;
56 INLINE dReal get_angle2_rate()
const;
58 INLINE
void set_param_lo_stop(
int axis, dReal val);
59 INLINE
void set_param_hi_stop(
int axis, dReal val);
60 INLINE
void set_param_vel(
int axis, dReal val);
61 INLINE
void set_param_f_max(
int axis, dReal val);
62 INLINE
void set_param_fudge_factor(
int axis, dReal val);
63 INLINE
void set_param_bounce(
int axis, dReal val);
64 INLINE
void set_param_CFM(
int axis, dReal val);
65 INLINE
void set_param_stop_ERP(
int axis, dReal val);
66 INLINE
void set_param_stop_CFM(
int axis, dReal val);
68 INLINE dReal get_param_lo_stop(
int axis)
const;
69 INLINE dReal get_param_hi_stop(
int axis)
const;
70 INLINE dReal get_param_vel(
int axis)
const;
71 INLINE dReal get_param_f_max(
int axis)
const;
72 INLINE dReal get_param_fudge_factor(
int axis)
const;
73 INLINE dReal get_param_bounce(
int axis)
const;
74 INLINE dReal get_param_CFM(
int axis)
const;
75 INLINE dReal get_param_stop_ERP(
int axis)
const;
76 INLINE dReal get_param_stop_CFM(
int axis)
const;
82 static void init_type() {
83 OdeJoint::init_type();
85 OdeJoint::get_class_type());
88 return get_class_type();
90 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.