You have to change a few function names:
Change
Vec2 pos = box2d.getScreenPos(body); to Vec2 pos =
box2d.getBodyPixelCoord(body); in 2 places.
and
bd.position = box2d.screenToWorld(x,y); to bd.position =
box2d.coordPixelsToWorld(x,y); in 1 place.
and
cd.radius = box2d.scaleScreenToWorld(r); to cd.radius =
box2d.scalarPixelsToWorld(r); in 1 place.
and
worldVertex = box2d.screenToWorld(screenVertex); to
worldVertex = box2d.coordPixelsToWorld(screenVertex); in 1 place.
This worked for me.
I just figured it out by looking at pbox2d source as I couldn't find
any documentation on the function name changes.
jh
On Mar 30, 7:55 pm, Ties <
thijseer...@gmail.com> wrote:
> Hi there,
>
> I have followed Tohm Judson's tutorial (
http://tohmjudson.com/?p=30)
> which was great!
> Everything is working in MaxMSP but I also want to use the Kinect in
> combination with Processing.
>
> In Tohm's tutorial pbox2d should be downloaded viahttp://
code.google.com/p/pbox2d/,
> but this link is not working.
> I searched for an other link and foundhttps://
github.com/shiffman/PBox2D.