Get the "position" where the camera is looking at?

Hi there,

I was wondering if there was a way to get the “position” where the camera is looking at ?
For example in a virtual visit, if I want a customer to look at a specific place when entering a room. I need the position I want. I could use setTarget( position I want) but I would like to get it when I am creating the visit and click on the button when I see the “place” so it saves the specific place for the virtual visit.

Because even If I use setTarget, I need the position afterAll ^^

thought: I could use a sphere like a pointer then get the position of the sphere
Thank you,
Mathieu

https://doc.babylonjs.com/api/classes/babylon.arcrotatecamera#getfrontposition
https://www.babylonjs-playground.com/#1FQZ8T#0
:wink:

2 Likes