|
发表于 2013-3-29 11:10:00
|
显示全部楼层
楼上正解- // 来源:TabPlaneDragger.cpp
- osg::Node* createHandleScene(const osg::Vec3& pos, osg::Node* handleNode, float handleScaleFactor)
- {
- osg::AutoTransform *at = new osg::AutoTransform;
- at->setPosition(pos);
- at->setPivotPoint(pos * handleScaleFactor);
- at->setAutoScaleToScreen(true);
- at->addChild(handleNode);
- AntiSquish* as = new AntiSquish;
- as->setPivot(pos);
- as->addChild(at);
- return as;
- }
复制代码 |
|