#I need help with camera's trigonometry.

1 messages · Page 1 of 1 (latest)

patent quarry
#

as you can see in the image, the red ball represent where the mouse is in the scene as captured b the first part, the second one is where the ray is sended, only the ray is right.

#

if I written anything wrong in the equation.

#

also, the function that I'm using to calculate the triangle is this one
float DistanciaDaBaseDaCameraParaLocalSelecionado(float height, float angle)
//b(cateto) = tan(angle) * height(Outro cateto que temos)
=> Mathf.Tan(angle) * height;
}

#

I need help with camera's trigonometry.