Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition jerks when stopping #2

Open
hablema opened this issue Jan 30, 2018 · 1 comment
Open

Transition jerks when stopping #2

hablema opened this issue Jan 30, 2018 · 1 comment

Comments

@hablema
Copy link

hablema commented Jan 30, 2018

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

@eh3rrera
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants