diff = Target.position - transform.position;
diff.x = 0;
diff.y = 0;
Vector3 pos1 = Vector3.zero;
pos1[0] = 30;
pos1[1] = 20;
pos1[2] = 10;
pos1.x = 30;
Target.position = pos1;
//Target.position.Set(30, 0, 0);
Target.position = new Vector3(30, 0, 0);
//Target.position.x = 30; error 요렇게는 못써요..
'Computer Language > 유니티' 카테고리의 다른 글
따라다니게 해보자. (0) | 2014.04.29 |
---|---|
z축으로 전진 잔진 (0) | 2014.04.29 |
차이를 이용하여 이동시켜 보잨ㅋㅋ (0) | 2014.04.29 |
좌표값을 입력해놓고 이리저리 움직여 보자 (0) | 2014.04.29 |
벡터 크기증가와 이동 (0) | 2014.04.29 |