ARKitAnimation icon indicating copy to clipboard operation
ARKitAnimation copied to clipboard

Transition jerks when stopping

Open hablema opened this issue 7 years ago • 1 comments

How can make the stopping animation smooth. It jerks like skipping frames when stopped.

hablema avatar Jan 30 '18 10:01 hablema

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?

eh3rrera avatar Jan 30 '18 15:01 eh3rrera