ARKitAnimation
ARKitAnimation copied to clipboard
Transition jerks when stopping
How can make the stopping animation smooth. It jerks like skipping frames when stopped.
That's the job of the following lines:
func loadAnimation(withKey: String, sceneName:String, animationIdentifier:String) {
...
if let animationObject = sceneSource?.entryWithIdentifier(animationIdentifier, withClass: CAAnimation.self) {
...
// To create smooth transitions between animations
animationObject.fadeInDuration = CGFloat(1)
animationObject.fadeOutDuration = CGFloat(0.5)
...
}
}
Maybe increasing the value of those properties?
In my case, I tested the obese man model with an iPad 2017 and it's fine.
I don't know how are you testing, maybe trying with another 3D model? another device if possible?