7 #include "BlMotorizedJoint.h"
8 #include "BlRigidBody.h"
10 #include "BlSimulator.h"
36 {
Std_TraceMsg(0,
"Caught Error in desctructor of BlBox\r\n",
"", -1,
false,
true);}
39 void BlBox::CreateGraphicsGeometry()
44 void BlBox::CreatePhysicsGeometry()
53 DeleteCollisionGeometry();
55 CalculateVolumeAndAreas();
56 m_eBodyType = BOX_SHAPE_PROXYTYPE;
61 void BlBox::CalculateVolumeAndAreas()
71 Mass(fltMass,
false,
false);
79 BlRigidBody::CreateItem();
89 BlRigidBody::Initialize();
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
virtual bool IsCollisionObject()
Query if this object is collision object.
virtual float WidthSegmentSize()
Gets the width segment size.
float m_fltMass
The mass of the object.
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
float m_fltVolume
The volume for the rigid body.
virtual float Width()
Gets the width of the box.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual void CreateJoint()
Creates the joint.
float m_fltLength
The length dimension of the box.
float m_fltDensity
Uniform density for the rigid body.
virtual float Length()
Gets the length of the box.
virtual float LengthSegmentSize()
Gets the length segment size.
float m_fltWidth
The width dimension of the box.
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_fltHeight
The height dimension of the box.
Joint * m_lpJointToParent
virtual float HeightSegmentSize()
Gets the height segment size.
virtual float Height()
Gets the height of the box.