15 #ifndef __BULLET_ROTATIONAL_LIMIT_MOTOR_H__ 16 #define __BULLET_ROTATIONAL_LIMIT_MOTOR_H__ 18 #include "pandabase.h" 20 #include "bullet_includes.h" 21 #include "bullet_utils.h" 35 INLINE
void set_motor_enabled(
bool enable);
36 INLINE
void set_low_limit(PN_stdfloat limit);
37 INLINE
void set_high_limit(PN_stdfloat limit);
38 INLINE
void set_target_velocity(PN_stdfloat velocity);
39 INLINE
void set_max_motor_force(PN_stdfloat force);
40 INLINE
void set_max_limit_force(PN_stdfloat force);
41 INLINE
void set_damping(PN_stdfloat damping);
42 INLINE
void set_softness(PN_stdfloat softness);
43 INLINE
void set_bounce(PN_stdfloat bounce);
44 INLINE
void set_normal_cfm(PN_stdfloat cfm);
45 INLINE
void set_stop_cfm(PN_stdfloat cfm);
46 INLINE
void set_stop_erp(PN_stdfloat erp);
48 INLINE
bool is_limited()
const;
49 INLINE
bool get_motor_enabled()
const;
50 INLINE
int get_current_limit()
const;
51 INLINE PN_stdfloat get_current_error()
const;
52 INLINE PN_stdfloat get_current_position()
const;
53 INLINE PN_stdfloat get_accumulated_impulse()
const;
59 btRotationalLimitMotor &_motor;
62 #include "bulletRotationalLimitMotor.I" 64 #endif // __BULLET_ROTATIONAL_LIMIT_MOTOR_H__ Rotation Limit structure for generic joints.