14 #ifndef __BULLET_CONSTRAINT_H__ 15 #define __BULLET_CONSTRAINT_H__ 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;
42 INLINE
void set_breaking_threshold(PN_stdfloat threshold);
43 INLINE PN_stdfloat get_breaking_threshold()
const;
44 INLINE
void set_enabled(
bool enabled);
45 INLINE
bool is_enabled()
const;
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);
61 MAKE_PROPERTY(breaking_threshold, get_breaking_threshold, set_breaking_threshold);
62 MAKE_PROPERTY(enabled, is_enabled, set_enabled);
65 virtual btTypedConstraint *ptr()
const = 0;
71 static void init_type() {
72 TypedReferenceCount::init_type();
74 TypedReferenceCount::get_class_type());
77 return get_class_type();
81 return get_class_type();
90 #endif // __BULLET_CONSTRAINT_H__ void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.