I have 2 models , and I want to get the distance between each one and the THREE.js camera.
From what I seen , the THREE.js camera is set by default with 0 , 0 , 0 coordinated and they aren’t changed no matter how much the camera is moving.
I’ve also found this method :
camera.position.distanceTo()
But it gives me NaN when I try to use it . What parameter is it using ? Is there a documentation for this ?
After I get the distance , I wonder how can I convert it into a real distance , like meters ? Is it possible ?
Hi @yombo , thank you for reply , from what I remeber I think I’ve tried that already and didn’t work…but I don’t know what error I got , I did something like this :