0
\$\begingroup\$

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?

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

1 Answer 1

1
\$\begingroup\$

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.

\$\endgroup\$
6
  • \$\begingroup\$ No, I mean how do I program it or add it? \$\endgroup\$
    – Anonymous
    Commented Dec 4, 2013 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\$
    – House
    Commented Dec 4, 2013 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
    Commented Dec 4, 2013 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\$
    – House
    Commented Dec 4, 2013 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
    Commented Dec 5, 2013 at 1:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .