.pod 파일, 아들은 내가 사용할 수 없습니다를 .pod 파일에서 모든 노드를 얻을 수 있습니다 @ "NodeName"];어떻게 Cocos3D에 내가 분명히 노드 이름 해달라고을 사용하고
.pod 파일의 전체 내용을 meshNode에 저장하려고합니다. 감사합니다. .
.pod 파일, 아들은 내가 사용할 수 없습니다를 .pod 파일에서 모든 노드를 얻을 수 있습니다 @ "NodeName"];어떻게 Cocos3D에 내가 분명히 노드 이름 해달라고을 사용하고
.pod 파일의 전체 내용을 meshNode에 저장하려고합니다. 감사합니다. .
나는 이것이 낡은 실이라는 것을 알고 있으며 물어 보는 사람은 아마도 지금까지 그의 대답을 얻었을 것입니다. 그러나 희망이 다른 사람
도움이 될 것입니다 는[1] http://stackoverflow.com/questions/5271197/cocos-3d-pod-file-format-for-iphone-developing [1]
이 어떻게 (무효) initializeScene {
CC3Camera* cam = [CC3Camera nodeWithName: @"Camera"];
cam.location = cc3v(0.0, 0.0, 0.6);
[self addChild: cam];
CC3Light* lamp = [CC3Light nodeWithName: @"Lamp"];
lamp.location = cc3v(-2.0, 0.0, 0.0);
lamp.isDirectionalOnly = NO;
[cam addChild: lamp];
CC3PODResourceNode *testBox = [CC3PODResourceNode nodeWithName:@"obj"];
testBox.resource = [CC3PODResource resourceFromFile: @"angry4.POD"];
[self addChild:testBox];
[testBox getNodeNamed: @"obj"].visible = YES;
testBox.touchEnabled = YES;
[testBox setRotation:cc3v(100, 0, 0)];
testBox.location = cc3v(0.0f, 0.0f, 0.0f);
[testBox setScale:cc3v(0.5,0.5,0.5)];
CCActionInterval* LCLoop = [CC3Animate actionWithDuration: 4.1];
[testBox runAction:[CCRepeatForever actionWithAction:LCLoop]];
[self createGLBuffers];
[self selectShaderPrograms];
[self createBoundingVolumes];
LogInfo(@"The structure of this scene is: %@", [self structureDescription]);
}`
- 나는이 코드를 ` 당신의 초기화 기능을 대체 있어요