I'm moving the camera node of my SCNScene scene along the z-axis using the following code:
let moveTo = SCNAction.moveTo(SCNVector3(x:0,y:0,z:-40), duration: 40);
cameraNode.runAction(moveTo)
I would like given an event (like GameOver event fired by my game) to smoothly decelerate the camera until stop it.
How can smoothly stop moving the camera?