• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

lodev

5) cub3D - Raycaster 구현 (2)

2) side_dist가 작은 좌표에 따라 step_x, step_y 중 하나를 사용하면 x, y 방향으로 광선이 한 칸씩 점프 3) 만약 광선이 x축 방향과 일치, (y방향이 바뀌지 않을테니) 반복문을 돌 때 x방향으로만 한 칸씩 점프 5) 만약 광선이 y축 방향과 일치, (x방향이 바뀌지 않을테니) 반복문을 돌 때 y방향으로만 한 칸씩 점프 7) 광선이 점프할 때마다 map_x, map_...

42SeoullodevRayCastingcub3dRaycasterDDA42Seoul

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more