osg::ref_ptr<osg::Geode> rope1 = CreateCylinder(0, 0, 7, 0.1f); osg::ref_ptr<osg::Geode> rope2 = CreateCylinder(0, 0, 8, 0.1f); osg::ref_ptr<osg::Geode> rope3 = CreateCylinder(0, 0, 9, 0.1f); osg::ref_ptr<osg::Geode> rope4 = CreateCylinder(0, 0, 10, 0.1f); osg::ref_ptr<osg::Geode> rope5 = CreateCylinder(0, 0, 11, 0.1f); groupRope->addChild(rope1.get()); groupRope->addChild(rope2.get()); groupRope->addChild(rope3.get()); groupRope->addChild(rope4.get()); groupRope->addChild(rope5.get()); rotRope = new osg::MatrixTransform; rotRope->addChild(groupRope.get()); rotateRope1();
转载于:https://www.cnblogs.com/herd/p/11409133.html