How do you load a .dae file into an SCNNode in iOS SceneKit?

前端 未结 6 1179
你的背包
你的背包 2021-01-31 10:14

I am having trouble understanding how geometry from .dae files should be loaded into an iOS SceneKit scene graph.

I know that you can load .dae

6条回答
  •  孤城傲影
    2021-01-31 10:51

    The usual pattern is to load your scene and retrieve the node you are interested in with its name using

    [scene.rootNode childNodeWithName:aName recursively:YES];
    

    Then you can reparent this node to your main scene.

提交回复
热议问题