AnimatLab  2
Test
RbSphere.cpp
1 // RbSphere.cpp: implementation of the RbSphere class.
2 //
4 
5 #include "StdAfx.h"
6 #include "RbMovableItem.h"
7 #include "RbBody.h"
8 #include "RbJoint.h"
9 #include "RbMotorizedJoint.h"
10 #include "RbRigidBody.h"
11 #include "RbSphere.h"
12 #include "RbSimulator.h"
13 
14 namespace RoboticsAnimatSim
15 {
16  namespace Environment
17  {
18  namespace Bodies
19  {
20 
22 // Construction/Destruction
24 
25 RbSphere::RbSphere()
26 {
27  SetThisPointers();
28 }
29 
30 RbSphere::~RbSphere()
31 {
32  try
33  {
34  }
35  catch(...)
36  {Std_TraceMsg(0, "Caught Error in desctructor of RbSphere/\r\n", "", -1, false, true);}
37 }
38 
40 {
41  RbRigidBody::CreateItem();
42  Sphere::CreateParts();
43 }
44 
46 {
49 
50  Sphere::CreateJoints();
51  RbRigidBody::Initialize();
52 }
53 
54  } //Bodies
55  } // Environment
56 } //RoboticsAnimatSim
virtual void CreateJoint()
Creates the joint.
Definition: Joint.cpp:602
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
Definition: RbSphere.cpp:39
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
Definition: RbSphere.cpp:45