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
This Issue is about the rectangle form debug in p2 physic. #258
Labels
Comments
Can you try copying https://samme.github.io/phaser-examples-mirror/p2%20physics/body%20debug.html and rotate the block? |
sprite.body.rotateLeft(2); work fine, but i need .setRectangle rotate. I have static body. I want to turn the box through .setRectangle and see the result of the turn. |
samid737
added a commit
to samid737/phaser-ce
that referenced
this issue
Jul 11, 2017
assigned rotation value to physics body angle.
Merged
samid737
added a commit
to samid737/phaser-ce
that referenced
this issue
Jul 12, 2017
Possible fix/hack by always first applying the the rotation and then move on to debugBody.draw(). In debug.draw() the angle is not used anymore however.. tested with rectangle, circle, line, polygon and capsule..
samid737
added a commit
to samid737/phaser-ce
that referenced
this issue
Jul 12, 2017
Possible fix/hack by always first applying the the rotation and then move on to debugBody.draw(). In debug.draw() the angle is not used anymore however.. tested with rectangle, circle, line, polygon and capsule..
Assume fixed by b1db282. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Issue is about the rectangle form debug in p2 physic.
If I rotate the rectangle form, then in debug mode the boundary of the collider does not rotate, it is displayed incorrectly.
The text was updated successfully, but these errors were encountered: