I´m developing a shooting game, like the old Operation Wolf. I´ve got
an infrared laser gun, but it is handled just like a mouse. All actors
are layers, zero depth. The impact coordinates are very easy here, if
the mouse clicked inside an image and alpha channel is not
transparent, I make the hole. If not, next layer.

It´s working fine in 2D, and now I´ve moved to perspective view. I don
´t want to make a 3D game, but I want headtracking (like Lee and his
WiiMote).

The problem is that I don´t know if I have to make an imaginary line
between the position of the shooter and the "virtual screen coords",
and then go from the nearest image calculating if that line is
intersecting it. Im learning OpenGL on the fly, so the question is: is
there a simpler way?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to