來作 3D 彈幕遊戲啊 EP. 3 - 角色動起來 Character Controller | Unity 遊戲教學 | CC 字幕

Опубликовано: 11 Декабрь 2020
на канале: AirFish Lab
346
10

從這集開始終於進入實作階段,這集與下集將會使用 Unity 的 Character Controller 與 Input System 來製作玩家角色。本集將專注在 Character Controller 的部份。

專案連結:
⊙ GitHub:https://github.com/LanKuDot
⊙ 範例專案:https://github.com/LanKuDot/Unity-Pla...
⊙ 遊戲專案:https://github.com/LanKuDot/3D_STG
  相關程式碼為 Assets/Scripts/GamePlay/Character.cs

相關連結:
⊙ Character Controller 介紹:https://docs.unity3d.com/Manual/class...
  裡面有相關參數設定的詳細介紹

FAQ:
Q:為什麼在 FixedUpdate() 中使用 TIme.deltaTime 而不是 TIme.fixedDeltaTime?
A:因為 Time.deltaTime 在 Update() 與 FixedUpdate() 中會回傳正確的對應值,所以在 FixedUpdate() 中,Time.deltaTime 回傳的值跟 Time.fixedDeltaTime 是一樣的

段落:
0:00 引言
0:18 這兩集將會作出
0:30 思考實現細節
1:15 Character Controller 簡介
2:11 如何控制 Character Controller
4:06 Character Controller 與物件的互動
4:58 設定 Character Controller 參數
5:33 Character Controller 的問題
6:11 製作角色類別
7:18 下集待續