36 void enable_feedback(
bool value);
38 void set_debug_draw_size(PN_stdfloat size);
39 PN_stdfloat get_debug_draw_size();
41 PN_stdfloat get_applied_impulse()
const;
44 INLINE
void set_enabled(
bool enabled);
47 enum ConstraintParam {
54 void set_param(ConstraintParam num, PN_stdfloat value,
int axis=-1);
55 PN_stdfloat get_param(ConstraintParam num,
int axis=-1);
57 MAKE_PROPERTY(rigid_body_a, get_rigid_body_a);
58 MAKE_PROPERTY(rigid_body_b, get_rigid_body_b);
59 MAKE_PROPERTY(debug_draw_size, get_debug_draw_size, set_debug_draw_size);
60 MAKE_PROPERTY(applied_impulse, get_applied_impulse);
65 virtual btTypedConstraint *ptr()
const = 0;
71 static void init_type() {
72 TypedReferenceCount::init_type();
74 TypedReferenceCount::get_class_type());
76 virtual TypeHandle get_type()
const {
77 return get_class_type();
79 virtual TypeHandle force_init_type() {
81 return get_class_type();
85 static TypeHandle _type_handle;
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...