8 #include "OsgMovableItem.h"
10 #include "OsgRigidBody.h"
12 #include "OsgPrismaticLimit.h"
15 #include "OsgUserData.h"
16 #include "OsgUserDataVisitor.h"
17 #include "OsgDragger.h"
49 if(osgJointMT.valid())
51 if(lpUpperLimit && lpUpperLimit->BoxMT()) osgJointMT->removeChild(lpUpperLimit->BoxMT());
52 if(lpUpperLimit && lpUpperLimit->CylinderMT()) osgJointMT->removeChild(lpUpperLimit->CylinderMT());
54 if(lpLowerLimit && lpLowerLimit->BoxMT()) osgJointMT->removeChild(lpLowerLimit->BoxMT());
55 if(lpLowerLimit && lpLowerLimit->CylinderMT()) osgJointMT->removeChild(lpLowerLimit->CylinderMT());
57 if(lpPosFlap && lpPosFlap->BoxMT()) osgJointMT->removeChild(lpPosFlap->BoxMT());
61 void OsgPrismatic::CreatePrismaticGraphics(
float fltBoxSize,
float fltRadius,
62 osg::ref_ptr<osg::MatrixTransform> osgJointMT, OsgPrismaticLimit *lpUpperLimit,
63 OsgPrismaticLimit *lpLowerLimit, OsgPrismaticLimit *lpPosFlap)
65 lpUpperLimit->SetupLimitGraphics(fltBoxSize, fltRadius);
66 lpLowerLimit->SetupLimitGraphics(fltBoxSize, fltRadius);
67 lpPosFlap->SetupLimitGraphics(fltBoxSize, fltRadius);
69 osgJointMT->addChild(lpUpperLimit->BoxMT());
70 osgJointMT->addChild(lpUpperLimit->CylinderMT());
72 osgJointMT->addChild(lpLowerLimit->BoxMT());
73 osgJointMT->addChild(lpLowerLimit->CylinderMT());
75 osgJointMT->addChild(lpPosFlap->BoxMT());
Declares the vs prismatic class.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
OsgPrismatic()
Default constructor.
Declares the vortex structure class.
virtual ~OsgPrismatic()
Destructor.