From Jean-Sebastien Guay, replaced M_PI with osg::PI.

This commit is contained in:
Robert Osfield 2008-11-08 17:53:51 +00:00
parent 52c14132b4
commit d75cd032b9

View File

@ -451,7 +451,7 @@ void createAxis(osg::Transform* previousJoint)
osg::MatrixTransform* mt = new osg::MatrixTransform(); osg::MatrixTransform* mt = new osg::MatrixTransform();
previousJoint->addChild(mt); previousJoint->addChild(mt);
osg::Matrix xMatrix = osg::Matrix::rotate(-M_PI_2, 0.0, 1.0, 0.0); osg::Matrix xMatrix = osg::Matrix::rotate(-osg::PI_2, 0.0, 1.0, 0.0);
mt->setMatrix(xMatrix); mt->setMatrix(xMatrix);
@ -464,7 +464,7 @@ void createAxis(osg::Transform* previousJoint)
osg::MatrixTransform *yMt = new osg::MatrixTransform(); osg::MatrixTransform *yMt = new osg::MatrixTransform();
previousJoint->addChild(yMt); previousJoint->addChild(yMt);
osg::Matrix yMatrix = osg::Matrix::rotate(M_PI_2, 1.0, 0.0, 0.0); osg::Matrix yMatrix = osg::Matrix::rotate(osg::PI_2, 1.0, 0.0, 0.0);
yMt->setMatrix(yMatrix); yMt->setMatrix(yMatrix);
osg::ShapeDrawable *yShape = new osg::ShapeDrawable(new osg::Cylinder(osg::Vec3(0.0f,0.0f,height/2),radius,height),hints); osg::ShapeDrawable *yShape = new osg::ShapeDrawable(new osg::Cylinder(osg::Vec3(0.0f,0.0f,height/2),radius,height),hints);