How do I creat a raycast in C++ for a game
21:54 02 Nov 2025

I have been making a 3D game from scratch using opengl and C++ and I want to know how I make a ray casting class in C++ for game where I can call it when ever I need to, to check for things like hitting something, shooting at something, distance from something, etc.

If anyone could help that would be great!

  • ShizamDa_Geek
c++ opengl game-engine glm raycasting