I am working on something like the LOD feature, that only execute some drawing code at proximity.
How to calculate distance between camera and an object? Does camera have xyz position value?
If possible, I also want to calculate the percentage occupied on screen of an object. But I don't know how to achieve that.