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 for issue #917, Physics.P2.Body#addToWorld #925

Merged
merged 1 commit into from
Jul 1, 2014

Commits on Jun 18, 2014

  1. Fix for issue phaserjs#917, Physics.P2.Body#addToWorld

    Fix for issue phaserjs#917: Calling reset() on Sprite with a P2 body can result in body.data.world == null.
    Calling addToWorld() would previously not check the _toRemove array, which could, if the timing were right, result in a Sprite being revived but then removed from the P2 World--the result of this being the Sprite's data would be in a mixed state causing it to appear visually but not function in the world.
    jonkelling committed Jun 18, 2014
    Configuration menu
    Copy the full SHA
    36d7069 View commit details
    Browse the repository at this point in the history