22 #ifndef AFX_DGBALLCONSTRAINT_H__7C9E1F9A_5EC6_48BE_8C9F_FB90132C6619__INCLUDED_ 23 #define AFX_DGBALLCONSTRAINT_H__7C9E1F9A_5EC6_48BE_8C9F_FB90132C6619__INCLUDED_ 24 #include "dgBilateralConstraint.h" 30 typedef void(dgApi *dgBallJointFriction)(
const NewtonJoint *
const ball, dFloat timestep);
37 void SetJointParameterCallBack(dgBallJointFriction callback);
39 bool GetTwistLimitState()
const;
40 void SetTwistLimitState(
bool state);
42 bool GetConeLimitState()
const;
43 void SetConeLimitState(
bool state);
45 bool GetLatealLimitState()
const;
46 void SetLatealLimitState(
bool state);
48 void SetLimits(
const dgVector &coneDir, dgFloat32 minConeAngle, dgFloat32 maxConeAngle, dgFloat32 maxTwistAngle,
49 const dgVector &bilateralDir, dgFloat32 negativeBilateralConeAngle, dgFloat32 positiveBilateralConeAngle);
56 void SetPivotPoint(
const dgVector &pivot);
62 unsigned m_ballLimits;
64 dgUnsigned32 m_coneLimit : 1;
65 dgUnsigned32 m_twistLimit : 1;
66 dgUnsigned32 m_lateralLimit : 1;
69 dgFloat32 m_coneAngle;
70 dgFloat32 m_twistAngle;
71 dgFloat32 m_coneAngleCos;
72 dgBallJointFriction m_jointUserCallback;
Definition: dgVector.h:86
Definition: dgBallConstraint.h:32
Definition: dgConstraint.h:137
Definition: dgBilateralConstraint.h:28
Definition: dgBallConstraint.h:63
Definition: dgWorld.h:118