본문 바로가기
unity3d

Vector3

by java개발자 2017. 11. 16.

MonumentValley를 unity3d로 해부하자


https://www.youtube.com/watch?v=ivfnyiTfLJ4



Vector3

print(Vector3.forward);   // 0, 0, 1

print(Vector3.right);       // 1, 0, 0

print(Vector3.back); // 0, 0, -1

print(Vector3.left);         // -1, 0, 0


// character

print (transform.position); // 0, 1, 2

print (transform.up); // 0, 1, 0 // y

print (transform.right); // 1, 0, 0 // x

print (transform.forward); // 0, 0 ,1 // z




player는 x,y,z 좌표계


floor는 x,z,y-1 좌표계인가?

'unity3d' 카테고리의 다른 글

visual studio 2017 shortcut  (0) 2017.11.23
c# window output  (0) 2017.11.22
namespace could not be found  (0) 2017.11.22
Unity 5 - Roll a Ball game  (0) 2017.11.12
안드로이드 빌드 버그  (0) 2017.10.28