9 #include "BlMotorizedJoint.h"
10 #include "BlRigidBody.h"
12 #include "BlSimulator.h"
46 {
Std_TraceMsg(0,
"Caught Error in desctructor of BlFluidPlane/\r\n",
"", -1,
false,
true);}
49 float BlFluidPlane::Height()
51 CStdFPoint vPos = GetOSGWorldCoords();
55 void BlFluidPlane::CreateGraphicsGeometry()
57 m_osgGeometry = CreateBoxGeometry(m_ptSize.x, m_ptSize.y, 0.1f, (m_ptSize.x/
GridX()), (m_ptSize.y/
GridY()), 0.1f);
60 void BlFluidPlane::CreatePhysicsGeometry()
69 m_eControlType = DynamicsControlType::ControlNode;
71 BlRigidBody::CreateItem();
72 FluidPlane::CreateParts();
75 void BlFluidPlane::ResizePhysicsGeometry()
80 void BlFluidPlane::Physics_FluidDataChanged()
83 void BlFluidPlane::UpdateFluidPlaneHeight()
88 lpSim->SortFluidPlanes();
93 FluidPlane::Position(oPoint, bUseScaling, bFireChangeEvent, bUpdateMatrix);
94 UpdateFluidPlaneHeight();
97 void BlFluidPlane::Physics_PositionChanged()
99 BlRigidBody::Physics_PositionChanged();
100 UpdateFluidPlaneHeight();
103 void BlFluidPlane::DeletePhysics(
bool bIncludeChildren)
108 lpSim->RemoveFluidPlane(
this);
111 void BlFluidPlane::SetupPhysics()
116 lpSim->AddFluidPlane(
this);
virtual float GridY()
Gets the length of a segment for the y dimension of the plane.
virtual CStdFPoint Position()
Gets the local position. (m_oPosition)
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual float GridX()
Gets the width of a segment for the x dimension of the plane.
virtual ~BlFluidPlane()
Destructor.
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
Declares the vortex fluid plane class.
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.
BlFluidPlane()
Default constructor.