I am currently using this code to get 3D mouse position from 2D coords
But say mouse is over a shape, it will ignore the shape.
What is the best way to get the 3D mouse position on an object?
You could possibly create a line in the the eye direction and check for intersections, the intersection would be the mouse pos.
Is this the best way to do it?
Thank you for any tips!
I uploaded a file with two methods that help