Drawing a line to mimic effects of PickRay

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Drawing a line to mimic effects of PickRay

unixnerd
When the users moves the mouse I want to draw a simple line that mimics the effect of PickRay. PickRay works fine, but I'd like them to have a visual reference to aid selection before they click the mouse button.

I'm really having trouble finding the right co-ordinates to use for the line ends. Does anyone have advice or an example?

Thanks.