Hello there,
I'm looking for a way to detect whether a user's cursor is hovering on an object (say a cube) in the 3D space
illust: (o = cursor)
__________________________________________________________________
| Cursor outside the cube ===== | Cursor inside the cube ========|
--------------------------------|--------------------------------|
=========_________==============|=========_________==============|
==o=====|=========|=<-=the=cube=|========|=========|=============|
========|=========|=============|========|===o=====|=============|
========|=========|=============|========|=========|=============|
========|_________|====false====|========|_________|====true=====|
================================|================================|
--------------------------------|--------------------------------|
and later maybe once the problem above is solved, I need to store the selected object ID when the user left-clicked it (dbMouseClick() = 1)
I don't have any idea about this.
Could anyone help me out?
Some example lines of code would be great
Thanks.