15 #ifndef __BULLET_CONE_TWIST_CONSTRAINT_H__
16 #define __BULLET_CONE_TWIST_CONSTRAINT_H__
18 #include "pandabase.h"
20 #include "bullet_includes.h"
21 #include "bullet_utils.h"
22 #include "bulletConstraint.h"
24 #include "transformState.h"
36 const TransformState *frame_a);
39 const TransformState *frame_a,
40 const TransformState *frame_b);
43 void set_limit(
int index, PN_stdfloat value);
44 void set_limit(PN_stdfloat swing1, PN_stdfloat swing2, PN_stdfloat twist, PN_stdfloat softness=1.0f, PN_stdfloat bias=0.3f, PN_stdfloat relaxation=1.0f);
46 void set_damping(PN_stdfloat damping);
48 PN_stdfloat get_fix_threshold()
const;
49 void set_fix_threshold(PN_stdfloat threshold);
51 void enable_motor(
bool enable);
52 void set_max_motor_impulse(PN_stdfloat max_impulse);
53 void set_max_motor_impulse_normalized(PN_stdfloat max_impulse);
55 void set_motor_target_in_constraint_space(
const LQuaternion &quat);
57 void set_frames(
const TransformState *ts_a,
const TransformState *ts_b);
58 INLINE CPT(TransformState) get_frame_a()
const;
59 INLINE CPT(TransformState) get_frame_b()
const;
62 virtual btTypedConstraint *ptr()
const;
65 btConeTwistConstraint *_constraint;
72 static void init_type() {
73 BulletConstraint::init_type();
74 register_type(_type_handle,
"BulletConeTwistConstraint",
75 BulletConstraint::get_class_type());
78 return get_class_type();
82 return get_class_type();
89 #include "bulletConeTwistConstraint.I"
91 #endif // __BULLET_CONE_TWIST_CONSTRAINT_H__
This is the base quaternion class.
TypeHandle is the identifier used to differentiate C++ class types.