I could really use a "lookThrough" feature that would maintain the lookAt, but position the camera to look through a particular vector by rotating the camera (with a animation time of course). I'm using peasycam in a sketch of the Earth and I've plotted points on it for particular locations based on my data. I'm adding a menu of the particular locations, and when the user clicks on the menu item (like France), I'd like the Camera to rotate the correct location given the particular x,y,z location of France on the sphere. So the center of the Earth is my lookAt, but I need something like a lookThrough x,y,z.
I could really use a "lookThrough" feature that would maintain the lookAt, but position the camera to look through a particular vector by rotating the camera (with a animation time of course). I'm using peasycam in a sketch of the Earth and I've plotted points on it for particular locations based on my data. I'm adding a menu of the particular locations, and when the user clicks on the menu item (like France), I'd like the Camera to rotate the correct location given the particular x,y,z location of France on the sphere. So the center of the Earth is my lookAt, but I need something like a lookThrough x,y,z.
Thanks Jon, this library is the best!