I cannot find LWJGL collision detection with a camera and walls. Like making it to where you can not walk through walls and other different shaped rectangular prisms and cubes. How do I set up LWJGL collision?

  • \$\begingroup\$ Help! JBullet doesn't work, Ode4j doesn't work for me, what should I use?!?!?!?!?! \$\endgroup\$ – Anonymous Dec 7 '13 at 20:22

LWJGL does not have a physics library built in to it. If you want to add collision detection to LWJGL, you'll need to create the collision detection yourself or use an existing library to add physics and collision detection to your game.

  • \$\begingroup\$ No, I mean how do I program it or add it? \$\endgroup\$ – Anonymous Dec 4 '13 at 2:12
  • \$\begingroup\$ How to program it is too broad of a question for this site. Adding it can be done with an existing physics library. Choosing which one to use is up to you. \$\endgroup\$ – MichaelHouse Dec 4 '13 at 2:14
  • \$\begingroup\$ No, I said 'how do I program it or add it', meaning if I can't program it, how to add it? I tried JBullet, but what I did it seemed outdated. \$\endgroup\$ – Anonymous Dec 4 '13 at 23:51
  • \$\begingroup\$ Yes, I replied to your "add it" comment as well. You do that with an existing physics library. The steps to add it will depend on the physics library you choose. There are typically "Hello World" or similar getting started tutorials with physics libraries. I suggest you choose a physics library that works for you and follow the tutorial for that library. \$\endgroup\$ – MichaelHouse Dec 4 '13 at 23:53
  • \$\begingroup\$ My question: Which one is updated and best for me? I use Java and LWJGL, and Slick-Util for Texture Loading, although that shouldn't matter. But what is a good Java library? \$\endgroup\$ – Anonymous Dec 5 '13 at 1:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.