Skip to content

coordinate mapping from SVG paths to SDL doesn't position objects correctly #1

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

Open
scottwalters opened this issue Jun 21, 2012 · 0 comments

Comments

@scottwalters
Copy link
Collaborator

One Zemmings::SVG::Object is created for each path found in the SVG level source being loaded. Each object contains a shape and a body. SVG paths pretty well correspond to objects. They each have a color and so forth, and can be filled. Each Box2D polygon shape created from the SVG paths looks pretty correct, but their position relative to each other is wrong (or looks wrong). There's some cropping and scaling code in there that might be the problem, or the problem might be related to parsing SVG's wonky command language for paths, documented at http://www.w3.org/TR/SVG/paths.html#PathData.

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