6 #include "RbMovableItem.h"
9 #include "RbMotorizedJoint.h"
10 #include "RbRigidBody.h"
11 #include "RbSimulator.h"
31 m_fltPrevBtJointPos = 0;
32 m_fltPrevJointPos = 0;
39 void RbJoint::SetThisPointers()
41 RbBody::SetThisPointers();
43 m_lpThisJoint =
dynamic_cast<Joint *
>(
this);
45 THROW_TEXT_ERROR(Rb_Err_lThisPointerNotDefined, Rb_Err_strThisPointerNotDefined,
"m_lpThisJoint, " + m_lpThisAB->Name());
47 m_lpThisJoint->PhysicsBody(
this);
54 m_lpRbSim =
dynamic_cast<RbSimulator *
>(m_lpThisAB->GetSimulator());
56 THROW_TEXT_ERROR(Rb_Err_lThisPointerNotDefined, Rb_Err_strThisPointerNotDefined,
"m_lpRbSim, " + m_lpThisAB->Name());
60 void RbJoint::Physics_CollectData()
62 RbBody::Physics_CollectData();
66 void RbJoint::Physics_ResetSimulation()
68 m_fltPrevBtJointPos = 0;
69 m_fltPrevJointPos = 0;
70 RbBody::Physics_ResetSimulation();
Classes for implementing the cm-labs vortex physics engine for AnimatLab.