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

Chipmunk static body offset off the sprite's center #917

Open
bomzj opened this issue May 4, 2013 · 0 comments
Open

Chipmunk static body offset off the sprite's center #917

bomzj opened this issue May 4, 2013 · 0 comments

Comments

@bomzj
Copy link

bomzj commented May 4, 2013

I found strange behaviour with static bodies. Bodies are not aligned with sprite image and placed by half of width of the sprite's image to the left off the sprite's center and half of the image height to bottom so you get offset for quarter of the rectangle (box body) to the left and bottom of the sprite's center. Non static bodies are well aligned with sprite's image.

On the image you can see quarter of the grey rectangle (static body) which should fill in whole white space but instead of it is displaced.

static_body_offset

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

1 participant