hello I don't have any code for it but I have no idea what to do for collision in LWJGL so I was wondering if somebody can help me just some code that they would use would be grate because I've tried looking at tutorials for help and none of them do
Thanks alot!

01-14-2012, 08:42 PM

Norm

Re: LWJGL Collison

Can you explain what you are doing?

01-14-2012, 08:53 PM

Brandon@JavaForums

Re: LWJGL Collison

well I'm trying to make a 2d game that has a little block type guy which I'm going to put a texture on and all of that stuff but I'm running in to trouble with making him run into other textures(blocks) its not really sophisticated collision I need but just something that will work

01-14-2012, 09:14 PM

Norm

Re: LWJGL Collison

In the simple bouncy ball apps we see here, collisions are detected by using x,y and width and height of the moving shape and for the other shapes being displayed.

01-14-2012, 10:16 PM

jammas615

Re: LWJGL Collison

It might sound weird but you can't specifically "do" collision "in" LWJGL. LWJGL is a game library not an engine. You need to make your own implementation of collision detection.
But just a question,
Are you using Opengl?
If you are maybe you should start with a google search for "opengl 2d collision" or something similar.