8 #include "VsMovableItem.h"
11 #include "VsMotorizedJoint.h"
12 #include "VsRigidBody.h"
14 #include "VsSimulator.h"
15 #include "VsDragger.h"
47 Structure::Body(lpBody);
51 THROW_TEXT_ERROR(Vs_Err_lUnableToConvertToVsRigidBody, Vs_Err_strUnableToConvertToVsRigidBody,
"ID: " + lpBody->Name());
54 void VsStructure::SetThisPointers()
56 VsMovableItem::SetThisPointers();
58 m_lpThisST =
dynamic_cast<Structure *
>(
this);
60 THROW_TEXT_ERROR(Vs_Err_lThisPointerNotDefined, Vs_Err_strThisPointerNotDefined,
"m_lpThisST, " + m_lpThisAB->Name());
63 osg::Group *VsStructure::ParentOSG()
65 return GetVsSimulator()->OSGRoot();
68 void VsStructure::Create()
75 void VsStructure::SetupPhysics()
81 VsMovableItem::Physics_ResetSimulation();
83 Structure::ResetSimulation();
86 void VsStructure::UpdatePositionAndRotationFromMatrix()
88 VsMovableItem::UpdatePositionAndRotationFromMatrix();
91 m_lpVsBody->EndGripDrag();
A common class for all rigid body data specific to vortex.
virtual void ResetSimulation()
Resets the simulation back to time 0.
virtual RigidBody * Body()
Gets the root body.
VsStructure()
Default constructor.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Structure()
Default constructor.
virtual ~VsStructure()
Destructor.
Declares the vortex structure class.