벡터 v와 점C를 지나고 법선벡터가 n인 평면과의 충돌지점 I를 찾으려면?
v의 시작점 x에서 점 C까지 향하는 벡터를 w라 할 때, 우리는 w를 n에 대해 정사영시켜 w'을 구하고
v를 n에 대해 정사영시켜 v'을 구한 후
v'과 w'과 삼각형의 닮음비를 이용하여 x부터 충돌지점 I까지의 거리를 구할 수 있다.
참고: https://youtu.be/fIu_8b2n8ZM
'mathematics > game mathematics' 카테고리의 다른 글
[Mathematics] 16. Plane Intersection & Frustum Culling (0) | 2022.04.03 |
---|---|
[Mathematics] 15. 3차원 Line-AABB Intersection (0) | 2022.04.03 |
[Mathematics] 13. 선형변환의 기하학적 의미 (0) | 2022.02.21 |
[Mathematics] 12. TRS Matrix (0) | 2022.02.21 |
[Mathematics] 11. Translation (0) | 2022.02.21 |