Raycasting to find a world vector on a mesh?

I’d like to use a camera where I could pick any point in my scene and use it as my orbit target. To do this I need to find where in the world’s coordinate system a ray cast from the screen collides with any part of a mesh.

I only need to do this operation once when the player chooses a new target to orbit around. Does anybody know how this can be accomplished?

Sounds like you want to use picking, or do I misunderstand? Try searching for “picking” in the forums, and/or look to the sample programs.

David