Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stickmanetic #2

Open
Bwki opened this issue Mar 11, 2011 · 4 comments
Open

Stickmanetic #2

Bwki opened this issue Mar 11, 2011 · 4 comments

Comments

@Bwki
Copy link

Bwki commented Mar 11, 2011

Hi, I'm having trouble with the Stickmanetic example, when I try to run it I get "The function getScreenPos(Body) does not exist" error on line "Vec2 pos = box2d.getScreenPos(body);" in Particle.

I'm using processing 1.2.1 on OSX 10.6.6

@franken
Copy link

franken commented Mar 11, 2011

Hi, I'm new but I just had the same problem. Were you able to download the pbox2d dependency? I get "Forbidden" when I try to download it from http://code.google.com/p/pbox2d/. I think the error might be due to not having that Processing library.

@Bwki
Copy link
Author

Bwki commented Mar 12, 2011

Hi franken. I've got the pbox2d library installed. But I've been getting the same "forbidden" page from the pbox2d google code, so I grabbed the version from https://github.com/shiffman/PBox2D instead. Maybe there's some difference in the versions that’s giving this error.

Does anyone have another link to pbox2d?

@x14c3
Copy link

x14c3 commented Nov 1, 2011

Works with this: http://ferdi-zoet.com/&/osceleton.html

    Change 
                    Vec2 pos = box2d.getScreenPos(body);   to   Vec2 pos = box2d.getBodyPixelCoord(body);    in 2 places. 
                    bd.position = box2d.screenToWorld(x,y);   to    bd.position = box2d.coordPixelsToWorld(x,y);    in 1 place. 
                    cd.radius = box2d.scaleScreenToWorld(r);    to      cd.radius = box2d.scalarPixelsToWorld(r);    in 1 place. 
                    worldVertex = box2d.screenToWorld(screenVertex);   to  worldVertex = box2d.coordPixelsToWorld(screenVertex); in 1 place.

@apfz
Copy link

apfz commented Jan 3, 2022

hi @x14c3 would you be so kind to remove the above link?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants