前回の
FPSSampleのアニメーションの実装を読む(前編) - siunのメモ
基本的に大まかな流れはここ読めばわかる
FPSSample/Animation.md at master · Unity-Technologies/FPSSample · GitHub
三人称視点の実装
- すべてPlayableAPIを使って実装してる
- AnimatorControllerの代わりはテンプレートになっていて,AnimGraph_StateSelectorで処理されてる
- 自分以外のすべてのプレイヤーのアニメーションは,以下二つで毎フレーム更新されている
- class ApplyPresentationState : BaseComponentSystem
- AnimStateController.ApplyPresentationState()を毎フレーム実行
- class UpdateCharPresentationState : BaseComponentSystem
- AnimStateController.UpdatePresentationState()を毎フレーム実行
- class ApplyPresentationState : BaseComponentSystem
- ラグの補間は各AnimGraphでやってる