Vector3

· Unity
Vector3 간단히 나타내기 Vector3.forward new Vector3 (0,0,1) Vector3.back new Vector3 (0,0,-1) Vector3.up new Vector3 (0,1,0) Vector3.down new Vector3 (0,-1,0) Vector3.right new Vector3 (1,0,0) Vector3.left new Vector3 (-1,0,0) Vector3.one new Vector3 (1,1,1) Vector3.zero new Vector3 (0,0,0) 그래서 앞으로 15를 가는 것을 코드로 짤 때에는,new Vector3(0,0,15) 보다는 Vector3.forward * 15 가 가독성이 좋다!!
푸쿠이
'Vector3' 태그의 글 목록