14 #ifndef __BULLET_GENERIC_CONSTRAINT_H__
15 #define __BULLET_GENERIC_CONSTRAINT_H__
46 LVector3 get_axis(
int axis)
const;
47 PN_stdfloat get_pivot(
int axis)
const;
48 PN_stdfloat get_angle(
int axis)
const;
51 void set_linear_limit(
int axis, PN_stdfloat low, PN_stdfloat high);
52 void set_angular_limit(
int axis, PN_stdfloat low, PN_stdfloat high);
63 MAKE_PROPERTY(translational_limit_motor, get_translational_limit_motor);
64 MAKE_PROPERTY(frame_a, get_frame_a);
65 MAKE_PROPERTY(frame_b, get_frame_b);
68 virtual btTypedConstraint *ptr()
const;
71 btGeneric6DofConstraint *_constraint;
79 static void init_type() {
80 BulletConstraint::init_type();
82 BulletConstraint::get_class_type());
85 return get_class_type();
89 return get_class_type();
98 #endif // __BULLET_GENERIC_CONSTRAINT_H__