8 #include "RbMovableItem.h"
10 #include "RbRigidBody.h"
13 #include "RbSimulator.h"
32 RbOrganism::~RbOrganism()
38 Organism::Body(lpBody);
42 THROW_TEXT_ERROR(Rb_Err_lUnableToConvertToVsRigidBody, Rb_Err_strUnableToConvertToVsRigidBody,
"ID: " + lpBody->Name());
45 void RbOrganism::SetThisPointers()
47 RbMovableItem::SetThisPointers();
49 m_lpThisST =
dynamic_cast<Structure *
>(
this);
51 THROW_TEXT_ERROR(Rb_Err_lThisPointerNotDefined, Rb_Err_strThisPointerNotDefined,
"m_lpThisST, " + m_lpThisAB->Name());
53 m_lpThisOG =
dynamic_cast<Organism *
>(
this);
55 THROW_TEXT_ERROR(Rb_Err_lThisPointerNotDefined, Rb_Err_strThisPointerNotDefined,
"m_lpThisOG, " + m_lpThisAB->Name());
58 void RbOrganism::Create()
67 RbMovableItem::Physics_ResetSimulation();
69 Organism::ResetSimulation();
virtual RigidBody * Body()
Gets the root body.
Organism()
Default constructor.
Structure()
Default constructor.
RbOrganism()
Default constructor.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Declares the vortex organism class.
virtual void ResetSimulation()
Resets the simulation back to time 0.