多自由度机械臂模拟-吊绳伸缩

吊绳伸缩

int numChild = groupRope->getNumChildren();
groupRope->removeChildren(0, numChild);

for (int k = 0; k<num; k++)
{
    osg::ref_ptr<osg::Geode> rope1 = CreateCylinder(0, 0, startPosition, 0.1f);
    hookNode = rope1;
    groupRope->addChild(rope1.get());
    startPosition++;
}

猜你喜欢

转载自www.cnblogs.com/herd/p/11431395.html
今日推荐