4 #include "BlMotorizedJoint.h"
5 #include "BlRigidBody.h"
7 #include "BlHingeLimit.h"
8 #include "BlSimulator.h"
17 BlHingeLimit::BlHingeLimit()
19 OsgHingeLimit::SetConstraintLimit(
this);
22 BlHingeLimit::~BlHingeLimit()
30 OsgHingeLimit::LimitAlpha(fltA);
35 Hinge *lpHinge =
dynamic_cast<Hinge *
>(
m_lpJoint);
38 OsgHingeLimit::SetLimitPos(lpHinge->CylinderHeight());
50 lpHinge->SetLimitValues();
55 OsgHingeLimit::DeleteLimitGraphics();
61 Hinge *lpHinge =
dynamic_cast<Hinge *
>(
m_lpJoint);
64 OsgHingeLimit::SetupLimitGraphics(lpHinge->FlapWidth(), lpHinge->CylinderHeight());
Declares the vortex hinge class.
virtual void SetLimitPos()
Sets the limit position using the current value set within the object.
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.
Vortex hinge joint class.
virtual void DeleteGraphics()
Deletes up the graphics for the constraint.
virtual void SetLimitValues()
Sets the limit values of the joint in the child object.
CStdColor m_vColor
The color used to display the limit.