Raycasting1 85_Raycasting(수학) 1. Sphere, Box, Plane에 대한 Raycast 코드 추가하기 레이저 쏴서 레이저 피격을 맞추는 거에 대해 다뤄 본다. Raycast Sphere Raycast Axis Aligned Bounding Box Raycast Oriented Bounding Box(생략) Raycast plane 핵심 4개만 추렸다. 이걸 이용해서 여러 개를 만들어서 최종적으로 거리 계산을 통해서 구하는 식으로 해 볼 것이다. //------------------- // Raycast //------------------- static bool Raycast(const Sphere3D& sphere, const Ray3D& ray, OUT float& distance); static bool Raycast(con.. DirectX 2024. 3. 31. 이전 1 다음