How to find distance from camera to object?

01 August 2017 16:36
Hi, there.

How to find distance to the object from camera? Thanks.
01 August 2017 17:30
Maybe you can use the API linkto get the translation of camera and object to calculate the distance.
01 August 2017 18:47
03 August 2017 12:24
Hi, there!

Thanks all, who replied for my question. The answer what I use - m_trans.distance();

It helped for me.
Please register or log in to leave a reply.