2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[Unity]MixamoのアニメーションをUnityに取り込んで動きが変だった時の対処方法

Last updated at Posted at 2023-02-20

概要

Mixamoで用意したアニメーションをUnityで設定してみると、動いてはいるけれど少しだけ動きが変な時があります。
・ キャラクターの向きが正面を向いていない
・ アニメーションを続けているとキャラクターの位置がだんだんズレていく
・ キャラクターを走らせていると変な体制でアニメーションしてる
こういう時の解決方法です。

本文

Projectウィンドウのfbxファイルを選択して
スクリーンショット 2023-02-21 6.33.27.png
InspectorでAnimationを選び以下のように設定します。(Loop Timeはアニメーションによって適宜切り替えてください)
最後にApplyを押して決定したらアニメーションが正しく動くようになると思います。
スクリーンショット 2023-02-21 6.33.55.png

補足

AnimatorのApply Root MotionをOFFにすることでも挙動を改善できる時があります。
(この方法はAnimationによる位置の変化をTransformの座標に適用するかどうかを切り替えるものです。OFFにすることでAnimationで位置が移動してもTransformは最初の場所から移動しなくなります)

スクリーンショット 2023-02-21 7.02.45.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?