9 #include "BlMotorizedJoint.h"
10 #include "BlRigidBody.h"
12 #include "BlSimulator.h"
48 {
Std_TraceMsg(0,
"Caught Error in desctructor of BlRPRO\r\n",
"", -1,
false,
true);}
51 void BlRPRO::SetupPhysics()
58 btTransform mtJointRelParent, mtJointRelChild;
59 CalculateRelativeJointMatrices(mtJointRelParent, mtJointRelChild);
63 m_btSocket->setLinearLowerLimit(btVector3(0, 0, 0));
64 m_btSocket->setLinearUpperLimit(btVector3(0, 0, 0));
65 m_btSocket->setAngularLowerLimit(btVector3(0, 0, 0));
66 m_btSocket->setAngularUpperLimit(btVector3(0, 0, 0));
68 GetBlSimulator()->DynamicsWorld()->addConstraint(
m_btSocket,
true);
75 BlJoint::Initialize();
84 #pragma region DataAccesMethods
86 bool BlRPRO::SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError)
88 if(BlJoint::Physics_SetData(strDataType, strValue))
91 if(RPRO::SetData(strDataType, strValue,
false))
96 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
101 void BlRPRO::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
103 BlJoint::Physics_QueryProperties(aryProperties);
104 RPRO::QueryProperties(aryProperties);
BlRPRO()
Default constructor.
btAnimatGeneric6DofConstraint * m_btSocket
The vortex socket class.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
RigidBody * m_lpChild
The child rigid body for this joint.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual void CreateJoint()
Creates the joint.
virtual ~BlRPRO()
Destructor.
Declares the vortex relative position, relative orientation class.
ConstraintRelaxation * m_aryRelaxations[6]
The relaxations for the constraints.