41 void set_limit(
int index, PN_stdfloat value);
42 void set_limit(PN_stdfloat swing1, PN_stdfloat swing2, PN_stdfloat twist, PN_stdfloat softness=1.0f, PN_stdfloat bias=0.3f, PN_stdfloat relaxation=1.0f);
44 void set_damping(PN_stdfloat damping);
46 PN_stdfloat get_fix_threshold()
const;
47 void set_fix_threshold(PN_stdfloat threshold);
49 void enable_motor(
bool enable);
50 void set_max_motor_impulse(PN_stdfloat max_impulse);
51 void set_max_motor_impulse_normalized(PN_stdfloat max_impulse);
52 void set_motor_target(
const LQuaternion &quat);
53 void set_motor_target_in_constraint_space(
const LQuaternion &quat);
59 MAKE_PROPERTY(fix_threshold, get_fix_threshold, set_fix_threshold);
60 MAKE_PROPERTY(frame_a, get_frame_a);
61 MAKE_PROPERTY(frame_b, get_frame_b);
64 virtual btTypedConstraint *ptr()
const;
67 btConeTwistConstraint *_constraint;
73 static void init_type() {
74 BulletConstraint::init_type();
76 BulletConstraint::get_class_type());
79 return get_class_type();
83 return get_class_type();
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...