8 #include "VsMovableItem.h"
11 #include "VsMotorizedJoint.h"
12 #include "VsRigidBody.h"
14 #include "VsSimulator.h"
15 #include "VsDragger.h"
34 VsOrganism::~VsOrganism()
41 Organism::Body(lpBody);
45 THROW_TEXT_ERROR(Vs_Err_lUnableToConvertToVsRigidBody, Vs_Err_strUnableToConvertToVsRigidBody,
"ID: " + lpBody->Name());
48 void VsOrganism::SetThisPointers()
50 VsMovableItem::SetThisPointers();
52 m_lpThisST =
dynamic_cast<Structure *
>(
this);
54 THROW_TEXT_ERROR(Vs_Err_lThisPointerNotDefined, Vs_Err_strThisPointerNotDefined,
"m_lpThisST, " + m_lpThisAB->Name());
56 m_lpThisOG =
dynamic_cast<Organism *
>(
this);
58 THROW_TEXT_ERROR(Vs_Err_lThisPointerNotDefined, Vs_Err_strThisPointerNotDefined,
"m_lpThisOG, " + m_lpThisAB->Name());
61 osg::Group *VsOrganism::ParentOSG()
63 return GetVsSimulator()->OSGRoot();
66 void VsOrganism::Create()
73 void VsOrganism::SetupPhysics()
79 VsMovableItem::Physics_ResetSimulation();
81 Organism::ResetSimulation();
84 void VsOrganism::UpdatePositionAndRotationFromMatrix()
86 VsMovableItem::UpdatePositionAndRotationFromMatrix();
89 m_lpVsBody->EndGripDrag();
A common class for all rigid body data specific to vortex.
virtual void ResetSimulation()
Resets the simulation back to time 0.
VsOrganism()
Default constructor.
Declares the vortex organism class.
virtual RigidBody * Body()
Gets the root body.
Organism()
Default constructor.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Structure()
Default constructor.