这有效
let scene = SCNScene(named: "house.dae")
节点有等价物吗?
let node = SCNNode(geometry: SCNGeometry( ..??.. "house.dae" ..??.. ))
我到处搜索,没有找到任何可以将整个 dae 文件加载到 SCNNode 中的东西。 (不仅仅是其中的一个ID)
// add a SCNScene as childNode to another SCNScene (in this case to scene)
func addSceneToScene() {
let geoScene = SCNScene(named: "art.scnassets/ball.dae")
scene.rootNode.addChildNode(geoScene.rootNode.childNodeWithName("Ball", recursively: true))
}
addSceneToScene()
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)