Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 내적
- 분할축 이론
- GJK
- 수학
- ubuntu
- 리눅스
- 문제풀이
- 외적
- AABB
- PS
- SOH
- 유니티
- Graham Scan
- 보로노이다이어그램
- C
- Doubly Connected Edge List
- uclidean algorithm
- c#
- Expanding Polytope Algorithm
- 충돌 알고리즘
- dp
- Vector
- linux
- Unity
- 백준
- 다이나믹 프로그래밍
- 알고리즘
- C++
- 벡터
- 우분투
Archives
- Today
- Total
목록유도탄 (1)
마이 플밍 블로그
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/tefaA/btrin0Xvb6O/BRyFFeSaDpz2Qx955zjxdK/img.gif)
기존에 사용하던 유도탄 코드 float dirAngle = transform.rotation.eulerAngles.z; dirAngle = dirAngle < 0 ? 180 + (180 + dirAngle) : dirAngle; if (target != null) { Vector2 targetDir = ((Vector2)target.position - (Vector2)transform.position).normalized; float targetDirAngle = Mathf.Atan2(targetDir.y, targetDir.x); targetDirAngle *= Mathf.Rad2Deg; targetDirAngle = targetDirAngle < 0 ? 180 + (180 + targetDirAngl..
게임엔진/Unity
2021. 10. 21. 19:55