You have to unproject a line perpendicular to the screen to world space. After you have that line you can intersect it with your objects. Check this page, specificaly the selection.py file: http://groups.google.com/group/pyglet-users/web/geoffrey-a-board-game-environment?pli=1
regards, Marco On Sat, Nov 1, 2008 at 4:20 PM, Noyan Tokgozoglu <[EMAIL PROTECTED]>wrote: > > I want to get the point (actually line) that corresponds to the > position of the mouse on the scee. Like a "what you see is what you > get". I'm not sure whether I am able to describe it properly but think > of it like 3d rts games. No matter what angle you are looking at the > world from, when you click, the unit you "see" to be at the point of > your mouse is selected. Is there a simple way to do this? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
