14 #ifndef __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__ 15 #define __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__ 33 void set_motor_enabled(
int axis,
bool enable);
34 void set_low_limit(
const LVecBase3 &limit);
35 void set_high_limit(
const LVecBase3 &limit);
36 void set_target_velocity(
const LVecBase3 &velocity);
37 void set_max_motor_force(
const LVecBase3 &force);
38 void set_damping(PN_stdfloat damping);
39 void set_softness(PN_stdfloat softness);
40 void set_restitution(PN_stdfloat restitution);
41 void set_normal_cfm(
const LVecBase3 &cfm);
42 void set_stop_erp(
const LVecBase3 &erp);
43 void set_stop_cfm(
const LVecBase3 &cfm);
45 bool is_limited(
int axis)
const;
46 bool get_motor_enabled(
int axis)
const;
47 int get_current_limit(
int axis)
const;
48 LVector3 get_current_error()
const;
49 LPoint3 get_current_diff()
const;
50 LVector3 get_accumulated_impulse()
const;
52 MAKE_PROPERTY(current_error, get_current_error);
53 MAKE_PROPERTY(current_diff, get_current_diff);
54 MAKE_PROPERTY(accumulated_impulse, get_accumulated_impulse);
60 btTranslationalLimitMotor &_motor;
65 #endif // __BULLET_TRANSLATIONAL_LIMIT_MOTOR_H__ PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Rotation Limit structure for generic joints.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.