15 #ifndef __BULLET_CONSTRAINT_H__ 16 #define __BULLET_CONSTRAINT_H__ 18 #include "pandabase.h" 20 #include "bullet_includes.h" 22 #include "typedReferenceCount.h" 38 void enable_feedback(
bool value);
39 void set_debug_draw_size(PN_stdfloat size);
41 PN_stdfloat get_applied_impulse()
const;
42 PN_stdfloat get_debug_draw_size();
44 INLINE
void set_breaking_threshold(PN_stdfloat threshold);
45 INLINE PN_stdfloat set_breaking_threshold()
const;
46 INLINE
void set_enabled(
bool enabled);
47 INLINE
bool is_enabled()
const;
49 enum ConstraintParam {
56 void set_param(ConstraintParam num, PN_stdfloat value,
int axis=-1);
57 PN_stdfloat get_param(ConstraintParam num,
int axis=-1);
60 virtual btTypedConstraint *ptr()
const = 0;
67 static void init_type() {
68 TypedReferenceCount::init_type();
69 register_type(_type_handle,
"BulletConstraint",
70 TypedReferenceCount::get_class_type());
73 return get_class_type();
77 return get_class_type();
84 #include "bulletConstraint.I" 86 #endif // __BULLET_CONSTRAINT_H__ A base class for things which need to inherit from both TypedObject and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.