How do I set the size of World in JBox2D 2.1.2?
I read a tutorial that passed a AABB in World constructor, but it only accepts a vector and a boolean... at least in version 2.1.2
The new version no longer needs a world bounding box, so you're fine. Grabbing the javadocs helps as well. On that note, I should probably put them online... will do that tonight.
So if it doesn't need a world bounding box how do I limit the world size? Do I have to make walls around the area I want?
The world bounding box was for the old broad phase detection. It wasn't a physics object, just a restriction. The new version has unlimited size.
If you want to make a box around an area, then make a box 🙂
Is there any easy way to do that? Like creating a single box and putting every object inside it? Or do I have to create 4 boxes to work like walls?
take a look at some of the testbed demos. Easiest way is to make a body with 4 edge polygon shapes.