0
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ It looks like you're still working on solving the problem from your previous question. Instead of posting a new question, you should edit your existing question to clarify it or include additional detail. For instance, when you say "I tried using the rotation formula", detail what specific rotation formula you used. Show the code. When you say "[it's] always only partially working", identify and show or describe what cases where it works / doesn't, and in what specific way it fails to work. \$\endgroup\$ Commented Jul 14 at 17:53

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.