6 #include "VsMovableItem.h"
9 #include "VsMotorizedJoint.h"
10 #include "VsRigidBody.h"
13 #include "VsSimulator.h"
14 #include "VsOsgUserData.h"
15 #include "VsOsgUserDataVisitor.h"
16 #include "VsDragger.h"
42 {
Std_TraceMsg(0,
"Caught Error in desctructor of VsBox\r\n",
"", -1,
false,
true);}
45 void VsBox::CreateGraphicsGeometry()
50 void VsBox::CalculateEstimatedMassAndVolume()
56 void VsBox::CreatePhysicsGeometry()
61 CalculateEstimatedMassAndVolume();
68 VsRigidBody::CreateItem();
70 VsRigidBody::SetBody();
79 VsRigidBody::Initialize();
82 void VsBox::ResizePhysicsGeometry()
86 VxBox *vxBox =
dynamic_cast<VxBox *
>(m_vxGeometry);
89 THROW_TEXT_ERROR(Vs_Err_lGeometryMismatch, Vs_Err_strGeometryMismatch, m_lpThisAB->Name());
93 CalculateEstimatedMassAndVolume();
virtual bool IsCollisionObject()
Query if this object is collision object.
virtual float WidthSegmentSize()
Gets the width segment size.
float m_fltEstimatedVolume
The estimated volume. See m_fltEstimatedMass desciption.
Simulator * m_lpSim
The pointer to a Simulation.
virtual void DistanceUnits(std::string strUnits)
Sets the distance units.
virtual float Width()
Gets the width of the box.
virtual void CreateJoint()
Creates the joint.
float m_fltLength
The length dimension of the box.
virtual float DisplayMassUnits()
Gets the density mass units.
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
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.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
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.
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
Joint * m_lpJointToParent
virtual float HeightSegmentSize()
Gets the height segment size.
virtual float Height()
Gets the height of the box.
Declares the vortex structure class.