Я использую Scenekit для анимации модели (созданной Blender), но модель меняет размер при анимации (в Blender она работает нормально).https://youtu.be/WCE_sXEyfXU
let sceneView = SCNView(frame: self.view.frame)
sceneView.allowsCameraControl = true
self.view.addSubview(sceneView)
let manScene = SCNScene(named: "art.scnassets/man.dae", inDirectory: nil, options: nil)
sceneView.scene = manScene
let camera = SCNCamera()
let cameraNode = SCNNode()
cameraNode.camera = camera
cameraNode.position = SCNVector3(-3.0, 3.0, 3.0)
let light = SCNLight()
light.type = SCNLight.LightType.ambient
let lightNode = SCNNode()
lightNode.light = light
lightNode.position = SCNVector3(10, 10, 10)
manScene!.rootNode.addChildNode(cameraNode)
let oneLegAnimation = SCNAnimationPlayer.loadAnimation(fromSceneNamed: "art.scnassets/oneLeg.dae")
oneLegAnimation.animation.isCumulative = false
oneLegAnimation.stop()
manScene!.rootNode.addAnimationPlayer(oneLegAnimation, forKey: "man")
manScene!.rootNode.animationPlayer(forKey: "man")?.play()
Спасибо!