Project_TCC
Project_TCC copied to clipboard
TCC stands for Tiny Character Controller. TCC is the best way to make your own game. This repository contains all packages and examples for TCC projects.
LookTargetControl で向きを変えたい場合、 Target と自身の y 座標に乖離があればあるほど、うまく角度が変わりません。 これは、 `Vector3.SignedAngle()` でヨーを計算する際に回転軸が傾いてしまうためです。 以下のパッチで修正することが可能です: ```diff diff --git a/Packages/com.utj.charactercontroller/Runtime/Components/Control/LookTargetControl.cs b/Packages/com.utj.charactercontroller/Runtime/Components/Control/LookTargetControl.cs index f81fd3f..36d456e 100644 --- a/Packages/com.utj.charactercontroller/Runtime/Components/Control/LookTargetControl.cs +++ b/Packages/com.utj.charactercontroller/Runtime/Components/Control/LookTargetControl.cs @@ -52,6 +52,7 @@ namespace Unity.TinyCharacterController.Control return 0;...
サンプルシーンUC-01-02_Walk_and_Run内の説明で ``` TinyCharacterControllerを使うと、簡単にキャラクターを制御出来るようになります。 このシーンでは歩行中にShiftまたはRBを押すとランニングするようになりました。 PlayerControllerのStateMachineを見てみましょう。 ``` とあるのですが、PlayerControllerとは何を指しますか? 同名のクラスもオブジェクトも見つけられませんでした。 ```StateMachineを見てみましょう。```とも書かれていますが、見るべきステートマシンはどこにありますか? ステートマシンを使わずに直接アニメーターのパラメータを書き換えているように見えました。