15 #ifndef __BULLET_SLIDER_CONSTRAINT_H__ 16 #define __BULLET_SLIDER_CONSTRAINT_H__ 18 #include "pandabase.h" 20 #include "bullet_includes.h" 21 #include "bullet_utils.h" 22 #include "bulletConstraint.h" 24 #include "transformState.h" 36 const TransformState *frame_a,
40 const TransformState *frame_a,
41 const TransformState *frame_b,
45 PN_stdfloat get_linear_pos()
const;
46 PN_stdfloat get_angular_pos()
const;
49 PN_stdfloat get_lower_linear_limit()
const;
50 PN_stdfloat get_upper_linear_limit()
const;
51 PN_stdfloat get_lower_angular_limit()
const;
52 PN_stdfloat get_upper_angular_limit()
const;
53 void set_lower_linear_limit(PN_stdfloat value);
54 void set_upper_linear_limit(PN_stdfloat value);
55 void set_lower_angular_limit(PN_stdfloat value);
56 void set_upper_angular_limit(PN_stdfloat value);
59 void set_powered_linear_motor(
bool on);
60 void set_target_linear_motor_velocity (PN_stdfloat target_velocity);
61 void set_max_linear_motor_force(PN_stdfloat max_force);
62 bool get_powered_linear_motor()
const;
63 PN_stdfloat get_target_linear_motor_velocity()
const;
64 PN_stdfloat get_max_linear_motor_force()
const;
67 void set_powered_angular_motor(
bool on);
68 void set_target_angular_motor_velocity (PN_stdfloat target_velocity);
69 void set_max_angular_motor_force(PN_stdfloat max_force);
70 bool get_powered_angular_motor()
const;
71 PN_stdfloat get_target_angular_motor_velocity()
const;
72 PN_stdfloat get_max_angular_motor_force()
const;
75 void set_frames(
const TransformState *ts_a,
const TransformState *ts_b);
76 INLINE CPT(TransformState) get_frame_a()
const;
77 INLINE CPT(TransformState) get_frame_b()
const;
80 virtual btTypedConstraint *ptr()
const;
83 btSliderConstraint *_constraint;
90 static void init_type() {
91 BulletConstraint::init_type();
92 register_type(_type_handle,
"BulletSliderConstraint",
93 BulletConstraint::get_class_type());
96 return get_class_type();
100 return get_class_type();
107 #include "bulletSliderConstraint.I" 109 #endif // __BULLET_SLIDER_CONSTRAINT_H__
TypeHandle is the identifier used to differentiate C++ class types.