9 #include "BlRigidBody.h"
11 #include "BlSimulator.h"
39 {
Std_TraceMsg(0,
"Caught Error in desctructor of BlTorus/\r\n",
"", -1,
false,
true);}
42 void BlTorus::CreateGraphicsGeometry()
47 void BlTorus::CreatePhysicsGeometry()
51 DeleteCollisionGeometry();
55 m_btCollisionShape = osgbCollision::btTriMeshCollisionShapeFromOSG(m_osgNode.get());
64 BlRigidBody::CreateItem();
73 Torus::CreateJoints();
74 BlRigidBody::Initialize();
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
BlTorus()
Default constructor.
virtual bool IsCollisionObject()
Query if this object is collision object.
float m_fltInsideRadius
The inside radius of the torus.
int m_iRings
The number of rings used to draw the torus.
float m_fltVolume
The volume for the rigid body.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual void CreateJoint()
Creates the joint.
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.
float m_fltOutsideRadius
The outside radius of the torus.
Declares the vortex Torus class.
int m_iSides
The number of sides used to draw the torus.
Joint * m_lpJointToParent
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.