4 #include "BlMotorizedJoint.h"
5 #include "BlRigidBody.h"
6 #include "BlPrismaticLimit.h"
8 #include "BlSimulator.h"
17 BlPrismaticLimit::BlPrismaticLimit()
19 OsgPrismaticLimit::SetConstraintLimit(
this);
22 BlPrismaticLimit::~BlPrismaticLimit()
30 OsgPrismaticLimit::LimitAlpha(fltA);
35 CStdFPoint vPos(0, 0, 0), vRot(0, 0, 0);
37 Prismatic *lpPrismatic =
dynamic_cast<Prismatic *
>(
m_lpJoint);
39 OsgPrismaticLimit::SetLimitPos(lpPrismatic->CylinderRadius());
51 lpPrismatic->SetLimitValues();
56 OsgPrismaticLimit::DeleteLimitGraphics();
62 Prismatic *lpPrismatic =
dynamic_cast<Prismatic *
>(
m_lpJoint);
65 OsgPrismaticLimit::SetupLimitGraphics(lpPrismatic->BoxSize(), lpPrismatic->CylinderRadius());
Declares the vs prismatic class.
virtual void SetupGraphics()
Sets up the graphics for the constraint.
virtual float Alpha()
Gets the alpha value.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Joint * m_lpJoint
Pointer to parent joint.
virtual void DeleteGraphics()
Deletes up the graphics for the constraint.
virtual void SetLimitPos()
Sets the limit position using the current value set within the object.
CStdColor m_vColor
The color used to display the limit.
virtual void SetLimitValues()
Sets the limit values of the joint in the child object.