回答編集履歴
1
Time.fixedDeltaTimeの記述について追記
answer
CHANGED
@@ -5,7 +5,14 @@
|
|
5
5
|
__MonoBehaviourのFixedUpdate内で呼び出した場合、固定フレームレートのデルタ時間を返します。__
|
6
6
|
|
7
7
|
とのことですので、間違いというわけではないかと思います。
|
8
|
+
また、[Time.fixedDeltaTime - Unity スクリプトリファレンス](https://docs.unity3d.com/ja/current/ScriptReference/Time-fixedDeltaTime.html)には...
|
8
9
|
|
10
|
+
> For reading the delta time it is recommended to use Time.deltaTime instead because it automatically returns the right delta time if you are inside a FixedUpdate function or Update function.
|
11
|
+
|
12
|
+
__デルタ時間の取得には、代わりにTime.deltaTimeを使うことが推奨されます。これはFixedUpdate関数内でもUpdate関数内でも、自動的に正しいデルタ時間を返すためです。__
|
13
|
+
|
14
|
+
との記述もありました。
|
15
|
+
|
9
16
|
下記のように、`FixedUpdate`内と`Update`内で`Time.deltaTime`を取得してみると...
|
10
17
|
```C#
|
11
18
|
using UnityEngine;
|