AnimatLab  2
Test
VsBody.cpp
1 #include "StdAfx.h"
2 #include <stdarg.h>
3 #include "VsMovableItem.h"
4 #include "VsMovableItem.h"
5 #include "VsBody.h"
6 #include "VsJoint.h"
7 #include "VsMotorizedJoint.h"
8 #include "VsRigidBody.h"
9 #include "VsOrganism.h"
10 #include "VsStructure.h"
11 #include "VsClassFactory.h"
12 #include "VsSimulator.h"
13 #include "VsOsgUserData.h"
14 #include "VsOsgUserDataVisitor.h"
15 
16 //#include "VsSimulationRecorder.h"
17 #include "VsMouseSpring.h"
18 #include "VsLight.h"
19 #include "VsCameraManipulator.h"
20 #include "VsDragger.h"
21 
22 namespace VortexAnimatSim
23 {
24  namespace Environment
25  {
33 {
34  m_eControlType = VxEntity::kControlDynamic; //Default to dynamic control of the rigid body.
35 }
36 
44 {
45 }
46 
47 void VsBody::SetThisPointers()
48 {
49  VsMovableItem::SetThisPointers();
50 
51  m_lpThisBP = dynamic_cast<BodyPart *>(this);
52  if(!m_lpThisBP)
53  THROW_TEXT_ERROR(Vs_Err_lThisPointerNotDefined, Vs_Err_strThisPointerNotDefined, "m_lpThisBP, " + m_lpThisAB->Name());
54 }
55 
56  } // Environment
57 //} //VortexAnimatSim
58 
59 }
virtual ~VsBody()
Destructor.
Definition: VsBody.cpp:43
Declares the vortex organism class.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
VsBody()
Default constructor.
Definition: VsBody.cpp:32
Declares the vortex Light class.
Declares the vortex structure class.