|
|
????????
?????? ??????N???
?? ????? ?? ?
??????? ???????????
3D???????????.mesh ???.skeleton?????????????????????????
?????????????
//???????
SceneNode* mainFrameNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("MainFrame");
//???????
Entity* mainFrameEntity = mSceneMgr->createEntity("MainFrame","Object10.mesh");
mainFrameNode->attachObject(mainFrameEntity);
Entity* chiledEntity = mSceneMgr->createEntity("chiledFrame","Object03.mesh");
Entity* chiledEntity2 = mSceneMgr->createEntity("chiledFrame2","Object07.mesh");
//?????????
SkeletonPtr skptr = mainframeEntity->getMesh()->getSkeleton();
////????????????????
chiledEntity->getMesh()->_notifySkeleton(skptr);
chiledEntity2->getMesh()->_notifySkeleton(skptr);
//????????
chiledEntity->shareSkeletonInstanceWith(mainframeEntity);
chiledEntity2->shareSkeletonInstanceWith(mainframeEntity);
//??????????????????
mainframeNode->attachObject(chiledEntity);
mainframeNode->attachObject(chiledEntity2);
????_notifySkeleton()???????????????
???????????????
????????????!
?????????????? |
|