Hi
Ho to find camera target? Maybe on the wheel
How can I find the mesh I’m zooming in?
Hey!
do you mean:
- I want to know the mesh in the center of my screen?
- Literally what is the camera target? (which is
camera.target
) ?
1 Like
For the former you can use `scene.pick()’ API:
Mesh Picking | Babylon.js Documentation (babylonjs.com)
2 Likes
Hello @farukcelim just checking in, was your question answered?
1 Like
strangely, it isn’t camera.target.
That’s always 0,0,0 - can you please tell me why?
the camera type is irrelevant.
this will only be filled after rendering one frame https://playground.babylonjs.com/#DWPQ9R#1855
You can also call camera.update()
manually: https://playground.babylonjs.com/#DWPQ9R#1859
1 Like
Thank you. That’s good to know, but not helping as I need it in realtime. Internally, the values _x, _y and _z and filled immediately btw.
Thanks!!