0
Is it possible to find distance between camera and a mesh?
This discussion was imported from CodePlex
behnam263 wrote at 2014-07-25 21:00:
I need to know that is it possible to measure distance between camera position and mesh position?(for example camera position to center of mesh)
BogusException wrote at 2014-07-25 21:31:
@behname263,
If you mean the center of the mesh, there has to be at least 2 ways to use the mesh center as origin and camera position in 3d in a simple trig function... as in this example...
Or are you talking about the nearest point/vertices to the camera?
This may help as well, not knowing the actual issue: Fitting view with perspective camera
If you mean the center of the mesh, there has to be at least 2 ways to use the mesh center as origin and camera position in 3d in a simple trig function... as in this example...
Or are you talking about the nearest point/vertices to the camera?
This may help as well, not knowing the actual issue: Fitting view with perspective camera
Customer support service by UserEcho