teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

3

Quaternion

2020/09/10 13:06

投稿

shiena
shiena

スコア1827

answer CHANGED
@@ -2,4 +2,12 @@
2
2
 
3
3
  [Standard Assets (for Unity 2018.4)](https://assetstore.unity.com/packages/essentials/asset-packs/standard-assets-for-unity-2018-4-32351)
4
4
 
5
- `Marthf`は`Mathf`のスペルミスなので`r`を消せばエラー解消されます。
5
+ `Marthf`は`Mathf`のスペルミスなので`r`を消せばエラー解消されます。
6
+
7
+ `Quaternion`は以下の行で`rotation`が二重の`rotation.rotation`になっているためです。
8
+
9
+ ```cs
10
+ this.PlayerController.transform.rotation = Quaternion.Euler(0,-Mathf.Atan2(dz,dx)*Mathf.Rad2Deg - this.MainCamera.transform.rotation.rotation.eulerAngles.y,0);
11
+ ```
12
+
13
+ エラーメッセージはGoogle翻訳やDeepLなどである程度読める日本語に翻訳できるのでエラーメッセージから原因を類推する事をおすすめします。

2

URL修正

2020/09/10 13:06

投稿

shiena
shiena

スコア1827

answer CHANGED
@@ -1,5 +1,5 @@
1
1
  CrossPlatformInputManagerはStandard Assetsに含まれているものですが暫く更新されていないのですべてをインポートするとエラーが出るかもしれません。その場合は不要なものを削除してください。
2
2
 
3
- [Standard Assets (for Unity 2018.4)](https://assetstore.unity.com/packages/essentials/asset-packs/standard-assets-for-unity-2018-4-32351?locale=ja-JP#releases)
3
+ [Standard Assets (for Unity 2018.4)](https://assetstore.unity.com/packages/essentials/asset-packs/standard-assets-for-unity-2018-4-32351)
4
4
 
5
5
  `Marthf`は`Mathf`のスペルミスなので`r`を消せばエラー解消されます。

1

誤字修正

2020/09/07 08:04

投稿

shiena
shiena

スコア1827

answer CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  [Standard Assets (for Unity 2018.4)](https://assetstore.unity.com/packages/essentials/asset-packs/standard-assets-for-unity-2018-4-32351?locale=ja-JP#releases)
4
4
 
5
- `Marthf`は`Mathf`のスペルミスなので`r`を消ばエラー解消されます。
5
+ `Marthf`は`Mathf`のスペルミスなので`r`を消ばエラー解消されます。