15 #ifndef ODEAMOTORJOINT_H 16 #define ODEAMOTORJOINT_H 40 INLINE
void set_num_axes(
int num);
41 INLINE
void set_axis(
int anum,
int rel, dReal x, dReal y, dReal z);
42 INLINE
void set_axis(
int anum,
int rel,
const LVecBase3f &axis);
43 INLINE
void set_angle(
int anum, dReal angle);
44 INLINE
void set_mode(
int mode);
45 INLINE
void add_torques(dReal torque1, dReal torque2, dReal torque3);
47 INLINE
int get_num_axes()
const;
48 INLINE LVecBase3f get_axis(
int anum)
const;
49 MAKE_SEQ(get_axes, get_num_axes, get_axis);
50 INLINE
int get_axis_rel(
int anum)
const;
51 INLINE dReal get_angle(
int anum)
const;
52 INLINE dReal get_angle_rate(
int anum)
const;
53 INLINE
int get_mode()
const;
55 INLINE
void set_param_lo_stop(
int axis, dReal val);
56 INLINE
void set_param_hi_stop(
int axis, dReal val);
57 INLINE
void set_param_vel(
int axis, dReal val);
58 INLINE
void set_param_f_max(
int axis, dReal val);
59 INLINE
void set_param_fudge_factor(
int axis, dReal val);
60 INLINE
void set_param_bounce(
int axis, dReal val);
61 INLINE
void set_param_CFM(
int axis, dReal val);
62 INLINE
void set_param_stop_ERP(
int axis, dReal val);
63 INLINE
void set_param_stop_CFM(
int axis, dReal val);
65 INLINE dReal get_param_lo_stop(
int axis)
const;
66 INLINE dReal get_param_hi_stop(
int axis)
const;
67 INLINE dReal get_param_vel(
int axis)
const;
68 INLINE dReal get_param_f_max(
int axis)
const;
69 INLINE dReal get_param_fudge_factor(
int axis)
const;
70 INLINE dReal get_param_bounce(
int axis)
const;
71 INLINE dReal get_param_CFM(
int axis)
const;
72 INLINE dReal get_param_stop_ERP(
int axis)
const;
73 INLINE dReal get_param_stop_CFM(
int axis)
const;
80 static void init_type() {
81 OdeJoint::init_type();
83 OdeJoint::get_class_type());
86 return get_class_type();
88 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.
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.
TypeHandle is the identifier used to differentiate C++ class types.