Unityでオブジェクトの移動にRoot motionを利用してみる
本日はUnityのRoot Motionを使ってみたいと思います。
Root Motionとは?
Unityの公式マニュアル
Unity - マニュアル: ルートモーションの仕組み
または、Unreal Engineの公式マニュアルが参考になりました
docs.unrealengine.com
実際に使ってみる
- CubeとAnimator、transformのpositionを変更するanimation clipを作る
- animationのGenerate Root Motion Curvesをクリック
- CubeのAnimatorのApply Root Motionのチェックを入れる
これで、Root Motionの設定は終わりです。