Reading the collision. Mouse - the object.

Started by DarkPeter, October 20, 2011, 18:29:27

Previous topic - Next topic

DarkPeter

Hi,
I'm making the game in LWJGL. Now, I have this:  ;)

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!

CodeBunny

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.