-
Vector3 좌표값 이동 회전 축 중심
Transform https://infos.tistory.com/3166
World축 기준
Inspactor에 Transform값 변경.
transform.position = transform.position + new Vector3(0.3f*Time.deltaTime, 0, 0);
transform.eulerAngles = transform.eulerAngles + new Vector3(0, 0.5f*Time.deltaTime, 0);
Local축 기준(Object 기준)
transform.position += transform.TransformDirection(0.3f * Time.deltaTime, 0, 0);
transform.Rotate(new Vector3(0, 0.5f * Time.deltaTime, 0) * Time.deltaTime);
'Unity' 카테고리의 다른 글
Unity .meta file (0) 2023.03.02 GameObject.CreatePrimitive (0) 2023.02.15 Unity 2021에서 dotnet 위치 (0) 2023.01.15 UnityWebRequest Get,Post (0) 2022.12.21 Oculus Input (0) 2022.05.06 Oculus 컨트롤러 버튼 이름 (0) 2022.05.06 마우스와 커서 숨기기 잠그기 (0) 2022.05.06 Mouse로 화면(Camera) 움직임 (0) 2022.05.06