質問編集履歴

4

コードの修正

2019/03/31 13:40

投稿

_Beginner
_Beginner

スコア103

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  transform.LookAt(GameObject target);
6
6
 
7
- transform.rotation = Quaternion.Euler(transform.eulerAngles.x, transform.eulerAngles.y + 180, transform.eulerAngles.z);
7
+ transform.rotation *= Quaternion.Euler(transform.eulerAngles.x, transform.eulerAngles.y + 180, transform.eulerAngles.z);
8
8
 
9
9
  }
10
10
 

3

コードの修正

2019/03/31 13:40

投稿

_Beginner
_Beginner

スコア103

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  transform.LookAt(GameObject target);
6
6
 
7
- transform.rotation = Quaternion.Euler(transform.rotation.x, transform.rotation.y + 180, transform.rotation.z);
7
+ transform.rotation = Quaternion.Euler(transform.eulerAngles.x, transform.eulerAngles.y + 180, transform.eulerAngles.z);
8
8
 
9
9
  }
10
10
 

2

誤字の修正

2019/03/31 13:40

投稿

_Beginner
_Beginner

スコア103

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  transform.LookAt(GameObject target);
6
6
 
7
- transform.rotation = Quaternion.Euler(0, 180, 0);
7
+ transform.rotation = Quaternion.Euler(transform.rotation.x, transform.rotation.y + 180, transform.rotation.z);
8
8
 
9
9
  }
10
10
 

1

タイトルの簡略化

2019/03/31 13:17

投稿

_Beginner
_Beginner

スコア103

test CHANGED
@@ -1 +1 @@
1
- LookAt()にy軸180を追加したい
1
+ LookAt()にy軸180°を追加したい
test CHANGED
File without changes