Hi everyone,
I've been trying to get a simple camera look at point function working, but I ended up rewriting it 20 times or so. While it's a relatively easy-to-write function.
The problem is simple. I have my camera position, and a 3D point to look at. How do I calculate the rotation/angles for the camera? It would be awesome if someone could write an example function (in C++ or any other language), any help is welcome though.
Thanks in advance.
- Ywa