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

DrawShape implementation differs from C++ version #64

Open
mobileben opened this issue Oct 7, 2019 · 1 comment
Open

DrawShape implementation differs from C++ version #64

mobileben opened this issue Oct 7, 2019 · 1 comment

Comments

@mobileben
Copy link

Not sure if people have been implementing debug drawing through b2Draw but it looks like there is some deviation. For example, there is no PushTransform or PopTransform. It seems that in order to properly render the objects, one needs to apply the transforms.

Is this deliberate?

@flyover
Copy link
Owner

flyover commented Nov 25, 2019

This was deliberate. These do not need to be implemented if the vertices are transformed manually, like in the Box2D C++ Testbed. Alternatively, you can override these to use a matrix transformation or save/restore state in a canvas 2D context.

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

2 participants