Hello,
I am trying to find the position on a model’s surface that the camera looks at.
With camera.getTarget() I am getting the center only of course.
I guess I’d need a ray for that?
Thanks!
Seems a ray would be the simplest solution.
But how would I get the directional vector of the Camera view?
From the two position vectors camera and mesh center I would in most cases not get the correct direction.
Thanks.
so I used:
let ray = this._camera.getForwardRay()
let hit = this._scene.pickWithRay(ray);
that works
3 Likes