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