3D Math Question

Blitz3D Forums/Blitz3D Programming/3D Math Question

Yes :) I don't want to use a linepick (and a CameraPick is technically the same as a linepick) since it's all about speed optimation. I already know the distance, all I need to know now is where it exactly is. A simplified version of this calculation may be

x2= x1+(sin(angle)*distance)
z2= z1+(cos(angle)*distance)

where x1,z1 is the position of the camera and "angle" is calculated from the camera angle plus (the screen position multiplied with the distance) or something.

And it has to be in 3D :)