40 #ifndef _physicsconetwistconstraint_cpp
41 #define _physicsconetwistconstraint_cpp
43 #include "Physics/conetwistconstraint.h"
44 #include "Physics/rigidproxy.h"
46 #include "stringtool.h"
49 #include <btBulletDynamicsCommon.h>
82 void ConeTwistConstraint::SetAngularOnly(
bool AngularOnly)
83 { this->
ConeTwist->setAngularOnly(AngularOnly); }
85 void ConeTwistConstraint::SetLimit(
int LimitIndex,
Real LimitValue)
86 { this->
ConeTwist->setLimit(LimitIndex, LimitValue); }
88 void ConeTwistConstraint::SetLimit(
Real SwingSpan1,
Real SwingSpan2,
Real Twistspan,
Real Softness,
Real BiasFactor,
Real RelaxationFactor)
89 { this->
ConeTwist->setLimit(SwingSpan1, SwingSpan2, Twistspan, Softness, BiasFactor, RelaxationFactor); }
91 void ConeTwistConstraint::SetDamping(
Real Damping)
94 void ConeTwistConstraint::SetMaxMotorImpulse(
Real MaxMotorImpulse)
95 { this->
ConeTwist->setMaxMotorImpulse(MaxMotorImpulse); }
97 void ConeTwistConstraint::SetMaxMotorImpulseNormalized(
Real MaxMotorImpulse)
98 { this->
ConeTwist->setMaxMotorImpulseNormalized(MaxMotorImpulse); }
100 void ConeTwistConstraint::SetFixThresh(
Real FixThresh)
101 { this->
ConeTwist->setFixThresh(FixThresh); }
103 void ConeTwistConstraint::SetMotorTarget(
const Quaternion& Quat)
104 { this->
ConeTwist->setMotorTarget( Quat.GetBulletQuaternion() ); }
106 void ConeTwistConstraint::SetMotorTargetInConstraintSpace(
const Quaternion& Quat)
107 { this->
ConeTwist->setMotorTargetInConstraintSpace( Quat.GetBulletQuaternion() ); }
109 void ConeTwistConstraint::EnableMotor(
bool Enable)
110 { this->
ConeTwist->enableMotor(Enable); }
112 bool ConeTwistConstraint::IsPassedSwingLimit()
113 {
return this->
ConeTwist->isPastSwingLimit(); }