naverz / zepeto-studio-kor

48 stars 8 forks source link

On some devices, my character's feet do not touch the ground and hang in the air #1195

Closed aydinkarabudak closed 2 years ago

aydinkarabudak commented 2 years ago

Everything works fine in unity, but there is a problem when I take the zepeto package or test on device.

On some devices, my character's feet do not touch the ground and hang in the air. And the character is walking where he is without progressing. So "Apply Root Motion" doesn't seem to work.

Problem persists on iphone X. No problem with iPhone 11.

aydinkarabudak commented 2 years ago
Ekran Resmi 2022-08-23 20 47 17 Ekran Resmi 2022-08-23 20 48 48
aydinkarabudak commented 2 years ago

if i remove the zepeto scripts the problem goes away. The zepeto script is preventing the "Apply Root Motion" feature from working. How can I overcome this? This looks like a bug.

aydinkarabudak commented 2 years ago

Solved !!!

OnAnimatorMove() {

    this._animator = this.GetComponent<Animator>();

    if (this._animator)
    {

        this._animator.ApplyBuiltinRootMotion();

    }
}