1 #ifndef ODEHINGE2JOINT_H
2 #define ODEHINGE2JOINT_H
5 #include "typedObject.h"
8 #include "ode_includes.h"
27 INLINE
void set_anchor(dReal x, dReal y, dReal z);
28 INLINE
void set_anchor(
const LVecBase3f &anchor);
29 INLINE
void set_axis1(dReal x, dReal y, dReal z);
31 INLINE
void set_axis2(dReal x, dReal y, dReal z);
33 INLINE
void add_torques(dReal torque1, dReal torque2);
39 INLINE dReal get_angle1()
const;
40 INLINE dReal get_angle1_rate()
const;
41 INLINE dReal get_angle2_rate()
const;
43 INLINE
void set_param_lo_stop(
int axis, dReal val);
44 INLINE
void set_param_hi_stop(
int axis, dReal val);
45 INLINE
void set_param_vel(
int axis, dReal val);
46 INLINE
void set_param_f_max(
int axis, dReal val);
47 INLINE
void set_param_fudge_factor(
int axis, dReal val);
48 INLINE
void set_param_bounce(
int axis, dReal val);
49 INLINE
void set_param_CFM(
int axis, dReal val);
50 INLINE
void set_param_stop_ERP(
int axis, dReal val);
51 INLINE
void set_param_stop_CFM(
int axis, dReal val);
52 INLINE
void set_param_suspension_ERP(
int axis, dReal val);
53 INLINE
void set_param_suspension_CFM(
int axis, dReal val);
55 INLINE dReal get_param_lo_stop(
int axis)
const;
56 INLINE dReal get_param_hi_stop(
int axis)
const;
57 INLINE dReal get_param_vel(
int axis)
const;
58 INLINE dReal get_param_f_max(
int axis)
const;
59 INLINE dReal get_param_fudge_factor(
int axis)
const;
60 INLINE dReal get_param_bounce(
int axis)
const;
61 INLINE dReal get_param_CFM(
int axis)
const;
62 INLINE dReal get_param_stop_ERP(
int axis)
const;
63 INLINE dReal get_param_stop_CFM(
int axis)
const;
64 INLINE dReal get_param_suspension_ERP(
int axis)
const;
65 INLINE dReal get_param_suspension_CFM(
int axis)
const;
71 static void init_type() {
72 OdeJoint::init_type();
73 register_type(_type_handle,
"OdeHinge2Joint",
74 OdeJoint::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
85 #include "odeHinge2Joint.I"
This is the base class for all three-component vectors and points.
TypeHandle is the identifier used to differentiate C++ class types.