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 | 29 | 30 |
Tags
- uclidean algorithm
- 보로노이다이어그램
- linux
- 유니티
- PS
- Graham Scan
- SOH
- ubuntu
- c#
- 리눅스
- Unity
- 다이나믹 프로그래밍
- 분할축 이론
- C++
- dp
- 벡터
- GJK
- Doubly Connected Edge List
- AABB
- 알고리즘
- 수학
- 문제풀이
- Expanding Polytope Algorithm
- 외적
- 우분투
- 충돌 알고리즘
- Vector
- 백준
- C
- 내적
Archives
- Today
- Total
목록총알 (1)
마이 플밍 블로그

기존에 사용하던 유도탄 코드 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