Hi im trying to select voxels in a voxel world that are at the center of the cameras view.
The players camera X,Y,Z position and its rotations are known. The camera works in this program.
I tried using the rotation formula but its always only partially working. Are there any examples in c++ without using Vec3 or structs. I want to use the 2 rotations to check if a line of varying length is inside a block by using a for loop and incrementing the length of it.