Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Physics Engine?

Tags:

java

physics

I have been playing around with Game development in Java, specifically with the Slick 2d game engine. I have an idea for a simple game, but I need a physics engine.

I have been searching the internet looking for a well-documented, free physics engine. I have never used a physics engine so I am looking for something relatively simple, with a lot of examples and documentation.

like image 527
user1229164 Avatar asked Dec 20 '22 19:12

user1229164


2 Answers

Box2D is pretty much the standard 2d physics library for most games out there. There's a port to Java here which is quite easy to use:

http://www.jbox2d.org/

like image 106
Erica Avatar answered Dec 24 '22 03:12

Erica


What about JBox2d? It's a straight port of the more notorious Box2D written in C++.

like image 27
Jack Avatar answered Dec 24 '22 02:12

Jack