I am new to SceneKit and 3D objects . I did some research, but I did not find the answer to my question.
I need to display several 3D objects in a horizontal UICollectionView , one in each cell. I would like them to be aligned and the same size, so I would like them to match the parent view, aka SCNView .
Image for script image:

I would like the borders of the 3D object to visually match the borders of the SCNView. I want the 3D object to "match" in the view, a bit like UIViewContentMode.scaleAspectFit .
Here is my code:
let scene=SCNScene(named: file_name) let node=scene.rootNode.childNode(withName: node_name, recursively: true)! node.scale=SCNVector3Make(28, 28, 28) node.position=SCNVector3Make(0, 0.05, -0.5) scene.rootNode.addChildNode(node) sceneview.scene=scene
ios swift scenekit scnnode
Marie dm
source share