Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Archives
Today
Total
관리 메뉴

게임 프로그래밍

[Unity] 2D 방향벡터로 회전 값 구하기 본문

프로그래밍/유니티

[Unity] 2D 방향벡터로 회전 값 구하기

Junwe 2020. 3. 10. 23:50

Vector3 dir = new Vector3(15f,37f);

Mathf.Rad2Deg * (Mathf.Atan2(dir.normalized.y, dir.normalized.x))

 

Comments