Ios swift – How to position camera to center fit a 3d model inside a SK3DNode in SceneKit
I want to be able to center fit a 3D model inside a SK3DNode. I have the following code: public extension SK3DNode { static func forModel(_ model: SCNNode, size: CGSize) -> SK3DNode { let scene = SCNScene() let node3D =…