LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: DarkPeter on October 20, 2011, 18:29:27

Title: Reading the collision. Mouse - the object.
Post by: DarkPeter on October 20, 2011, 18:29:27
Hi,
I'm making the game in LWJGL. Now, I have this:  ;)
(http://img64.imageshack.us/img64/2641/trojkat.png) (http://imageshack.us/photo/my-images/64/trojkat.png/)
But, I have a problem:
How to check, whether user clicked on this object?
Is there any way to do this?
I would like to make the program, who say "AU!" when user click on the triangle :P
Can you help me?
Thanks!
Title: Re: Reading the collision. Mouse - the object.
Post by: CodeBunny on October 20, 2011, 19:59:27
That's up to you. LWJGL is a minimal library, not a full engine (which is a good thing!). It doesn't have any built-in functionality like you're looking for.

That said, there are a lot of ways for you to approach that. Some are simple, some really complicated. They all depend on what your final goal is, and how willing you are to deal with complex geometry.