We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm following the instructions in The Nature of Code and cannot get the Box2D example to work. I get the error:
The package pbox2d does not exist. You might be missing a library
The example code is this:
```PBox2D box2d;
void setup() { Initialize and create the Box2D world. box2d = new PBox2D(this); box2d.createWorld(); }```
I have installed the library through add tools, and I can see the library in my 'libraries' folder as shown.
Answers
Most assured way to
import
an installed library is clicking at "Sketch".Look for its "Contributed" section. You should find "Box2D for Processing" for clicking at.
Just gave that a go, I now get
import shiffman.box2d.*;
. My other problem is that the class has been renamed toBox2DProcessing
fromPBox2D
, but I was following the instructions in the book which call the library by its former name.thanks TOM i was confused myself, but helped out with the download of Box2DProcessing