Closed dimkir closed 10 years ago
ah, yes, thanks for catching this. chainloop was from a previous version of box2d and i missed updating that part of the text
It's my pleasure to be able to help! :) Thank you for writing the most amazing book on processing! :)
Hey guys I have jbox2d-library-2.1.2 jar and it doesn't seem to have ChainShape either!
I think I got rid of the problem, updated my jar to be of 2.2.1.1 version and it found the ChainShape :D
Finally fixed this in new repo https://github.com/shiffman/The-Nature-of-Code/commit/bee4022396f850648945391debcfc075950eb21b
In the paragraph about ChainShape (see excerpt below)
There's a reference to this
ChainLoop
class. It seems like this class doesn't really exist in PBox2D. But rather chain may be looped using call tops. I am new to Box2D, and thus I may be wrong. However when I tried to declare
ChainLoop
class in PDE it was throwing error. And also tutorial on Box2D http://www.box2d.org/manual.html (search for string "ChainShape") doesn't mention any ChainLoop classes, but offers following code to create looped shapes: