AnimatLab  2
Test
OsgBody.cpp
1 #include "StdAfx.h"
2 #include <stdarg.h>
3 #include "OsgMovableItem.h"
4 #include "OsgBody.h"
5 #include "OsgRigidBody.h"
6 #include "OsgJoint.h"
7 #include "OsgStructure.h"
8 #include "OsgUserData.h"
9 #include "OsgUserDataVisitor.h"
10 
11 #include "OsgMouseSpring.h"
12 #include "OsgLight.h"
13 #include "OsgCameraManipulator.h"
14 #include "OsgDragger.h"
15 
16 namespace OsgAnimatSim
17 {
18  namespace Environment
19  {
27 {
28  m_eControlType = DynamicsControlType::ControlDynamic; //Default to dynamic control of the rigid body.
29 }
30 
38 {
39 }
40 
41 void OsgBody::SetThisPointers()
42 {
43  OsgMovableItem::SetThisPointers();
44 
45  m_lpThisBP = dynamic_cast<BodyPart *>(this);
46  if(!m_lpThisBP)
47  THROW_TEXT_ERROR(Osg_Err_lThisPointerNotDefined, Osg_Err_strThisPointerNotDefined, "m_lpThisBP, " + m_lpThisAB->Name());
48 }
49 
50  } // Environment
51 //} //OsgAnimatSim
52 
53 }
OsgBody()
Default constructor.
Definition: OsgBody.cpp:26
Declares the vortex Light class.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual ~OsgBody()
Destructor.
Definition: OsgBody.cpp:37
Declares the vortex structure class.