15 #ifndef __BULLET_GENERIC_CONSTRAINT_H__ 16 #define __BULLET_GENERIC_CONSTRAINT_H__ 18 #include "pandabase.h" 20 #include "bullet_includes.h" 21 #include "bullet_utils.h" 22 #include "bulletConstraint.h" 23 #include "bulletRotationalLimitMotor.h" 24 #include "bulletTranslationalLimitMotor.h" 26 #include "transformState.h" 39 const TransformState *frame_a,
43 const TransformState *frame_a,
44 const TransformState *frame_b,
50 PN_stdfloat get_pivot(
int axis)
const;
51 PN_stdfloat get_angle(
int axis)
const;
54 void set_linear_limit(
int axis, PN_stdfloat low, PN_stdfloat high);
55 void set_angular_limit(
int axis, PN_stdfloat low, PN_stdfloat high);
62 void set_frames(
const TransformState *ts_a,
const TransformState *ts_b);
63 INLINE CPT(TransformState) get_frame_a()
const;
64 INLINE CPT(TransformState) get_frame_b()
const;
67 virtual btTypedConstraint *ptr()
const;
70 btGeneric6DofConstraint *_constraint;
79 static void init_type() {
80 BulletConstraint::init_type();
81 register_type(_type_handle,
"BulletGenericConstraint",
82 BulletConstraint::get_class_type());
85 return get_class_type();
89 return get_class_type();
96 #include "bulletGenericConstraint.I" 98 #endif // __BULLET_GENERIC_CONSTRAINT_H__
Rotation Limit structure for generic joints.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Rotation Limit structure for generic joints.
TypeHandle is the identifier used to differentiate C++ class types.