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

Fix debug drawing for p2 physics bodies #1674

Merged
merged 1 commit into from
Mar 18, 2015
Merged

Conversation

englercj
Copy link
Contributor

There were a couple of problems preventing the debug drawing from being correct:

  1. The shape check in draw() needed to check for Convex last, since other shapes (like Rectangle) inherit from Convex.
  2. The updateSpriteTransform() function needed to be called from the ctor. Otherwise bodies with no sprite (so no postUpdate call) would never be moved to draw in the correct position.

photonstorm added a commit that referenced this pull request Mar 18, 2015
Fix debug drawing for p2 physics bodies
@photonstorm photonstorm merged commit 358e0a6 into phaserjs:dev Mar 18, 2015
@photonstorm
Copy link
Collaborator

👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants